[Haiku-commits] r31038 - haiku/trunk/src/preferences/media
Stephan Assmus
superstippi at gmx.de
Sun Jun 14 09:10:58 CEST 2009
On 2009-06-14 at 07:45:39 [+0200], Rene Gollent <anevilyak at gmail.com> wrote:
> On Sat, Jun 13, 2009 at 7:37 PM, anevilyak at
> BerliOS<anevilyak at mail.berlios.de> wrote:
> > Author: anevilyak
> > Date: 2009-06-14 02:37:07 +0200 (Sun, 14 Jun 2009) New Revision: 31038
> > ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31038&view=rev
> >
> > Log:
> > The Media preflet was using a mix of old and layout style primitives to
> > set itself up. As a consequence resizing basically didn't work
> > correctly at all. Fixes ticket #3427.
> >
>
> These changes do expose a peculiarity I've thus far been unable to track
> down the cause of: if I switch to the config view of my audio chip, the
> resulting view has far more controls than can fit in the default window
> width, and thus has a scroll bar. This is fine. However, if I then resize
> the window wide enough such that said scroll bar is no longer necessary,
> I can then no longer size the window any smaller than that (ergo small
> enough to make the scrollbar reappear). I have yet to find where in any
> of the code this clamping effect comes from. Anyone who knows the layout
> kit and such better have any ideas?
If you still have an old style view, it may reset the MinSize() to the
current size always. MinSize() is implemented in BView to ask
GetPreferredSize(), and some controls return the current Bounds() there.
Best regards,
-Stephan
More information about the Haiku-commits
mailing list