[haiku-bugs] Re: [Haiku] #13174: [CodyCam] rewrite to use Layout API

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Tue, 10 Jan 2017 08:36:02 -0000

#13174: [CodyCam] rewrite to use Layout API
------------------------------------+----------------------------
   Reporter:  diver                 |      Owner:  humdinger
       Type:  enhancement           |     Status:  assigned
   Priority:  normal                |  Milestone:  Unscheduled
  Component:  Applications/CodyCam  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by axeld):

 CodyCam is using the layout API, but it is using it incorrectly; the BBox
 comes with its own layout that makes sure the label is taken into account.
 However, the code [http://cgit.haiku-
 os.org/haiku/tree/src/apps/codycam/CodyCam.cpp#n616 sets a new layout] on
 the BBox, causing the issue -- it uses a hard coded top offset that hides
 this bug in the 'normal' font size case.

--
Ticket URL: <https://dev.haiku-os.org/ticket/13174#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: