[haiku-bugs] Re: [Haiku] #13170: [Interface Kit] scrollbars do not scale

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 05 Jul 2020 22:42:22 -0000

#13170: [Interface Kit] scrollbars do not scale
---------------------------------+----------------------------
  Reporter:  diver               |      Owner:  nobody
      Type:  bug                 |     Status:  closed
  Priority:  normal              |  Milestone:  Unscheduled
 Component:  Kits/Interface Kit  |    Version:  R1/Development
Resolution:  fixed               |   Keywords:  hidpi
Blocked By:                      |   Blocking:
  Platform:  All                 |
---------------------------------+----------------------------
Changes (by waddlesplash):

 * status:  assigned => closed
 * resolution:   => fixed

Comment:

 Done in hrev54400.

 Replies to pulkomandy's notes:

  * Indeed, I did not have to change any drawing code.
  * I just added scaling to the resize knob based on the application's font
 size (after all, different applications may have different fonts and font
 sizes, so the decorators should not give us a scaled minimum resize knob
 size.)
  * As far as I can tell, BScrollView's code compensates for the size the
 scrollbars take up for the view, so I just enabled the scaling code
 unconditionally, i.e. even in non-layout mode. Probably most layout-
 unaware applications will be unusable at large font sizes anyway, but if
 some are intelligent enough, the scroll view will also look correct.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/13170#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: