[haiku-bugs] [Haiku] #9212: ScrollToSelection doesn't respect TextView insets

  • From: "humdinger" <trac@xxxxxxxxxxxx>
  • Date: Sat, 24 Nov 2012 14:43:43 -0000

#9212: ScrollToSelection doesn't respect TextView insets
--------------------------------+---------------------------
 Reporter:  humdinger           |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Kits/Interface Kit  |      Version:  R1/alpha4.1
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+---------------------------
 This is R1/alpha4.1

 When taking a screenshot, the file name is always shoved to the left side
 on the text field:

 [[Image(screenshot1.png)]]

 I could fix that by removing the line

 {{{  fNameControl->TextView()->ScrollToSelection(); }}}

 from screenshot's
 
[http://code.metager.de/source/xref/haiku/src/apps/screenshot/ScreenshotWindow.cpp#563
 _UpdateFilenameSelection()].[[BR]]
 But Oliver suggested in IRC, that this points to a bug in
 ScrollToSelection(). So here's a ticket for that instead.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9212>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: