(Cocoa) Cannot set TScrollBar to vertical dimensions
Original Reporter info from Mantis: Blake
-
Reporter name: Blake
Original Reporter info from Mantis: Blake
- Reporter name: Blake
Description:
This appears to happen at design time or at runtime.
I understand that Kind = sbVertical does not do anything for a Cocoa scrollbar (horizontal/vertical implied by dimensions), but the NSScroller frame is not set properly.
Steps to reproduce:
scroll := TScrollBar.Create(self);
scroll.width := 15;
scroll.height := 100;
The NSScroller will appear to be 100 wide, and the default 15 pixels high.
Additional information:
Using TCocoaScrollBar(handle) to get the NSScroller from the handle and calling setFrame does the trick as a work-around.
Mantis conversion info:
- Mantis ID: 35968
- Build: 61691
- Version: 2.0.3 (SVN)
- Fixed in revision: 61709 (#013971d9)
- Monitored by: » Blake (Blake)