text field boxes not drawn correctly in demo
ColMcp opened this issue · comments
The top horizontal line of the TextField and Secure TextField text boxes in the Demo Application are not being drawn correctly. If you first choose the Collection View segment and then the Other Controls segment, the text fields' top horizontal lines display a repeating pattern of dark and light pixels rather than a uniform line of grey pixels. If you then obscure the whole demo window and reveal it again these lines are now drawn correctly.
I fixed the problem by adding :drawsBackground => false to the options passed to the text_field and secure_text_field initialisers (demo/lib/views/controls.rb). However, I was a bit surprised at having to do this and I wonder whether the proper resolution is to supply :drawsBackground => false in the defaults settings of HotCocoa's NSTextField and NSSecureTextField mappings?
I'm using HotCocoa 0.6 with the pre-release of MacRuby 0.11 on Mac OS X 10.7.2.