> On 2010-11-06 14:55:24, Aaron Seigo wrote: > > it's probably that way so that if you say "two rows" then you get two rows > > even there are only two buttons. otherwise you'll get a whole row of > > buttons that takes up just the top row before filling in the rows below, > > leaving a large section of the widget empty until the rows are filled in > > with entries. > > > > [ window ] > > [ window ] > > > > vs > > > > [ window ] [ window ] > > < empty > > > > > on the other hand, trying to keep a stable # of rows while distributing > > between the rows would result in entries moving around quite a bit as > > windows are added .. which also isn't good. > > > > could you take some screenshots of the tasks widget running with your patch > > with different numbers of rows and windows showing in it, that we can use > > to get some responses to?
Thanks for pointing this out, but I think this is already prevented by precomputing the number of rows and columns. So, if a certain number of rows are forced, the number of columns will always be minimal (>x only if the number of items is bigger than the x times the number of rows). However - and this might be the reason for why this was implemented this way - with row-major ordering, not all of the rows will be filled if the number of columns (that you need anyways) allows you to accomodate all items with less rows. I really need more practice in explaining things in English, but maybe it's a bit clearer in the screenshot. - Ingomar ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://svn.reviewboard.kde.org/r/5776/#review8522 ----------------------------------------------------------- On 2010-11-06 13:09:53, Ingomar Wesp wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://svn.reviewboard.kde.org/r/5776/ > ----------------------------------------------------------- > > (Updated 2010-11-06 13:09:53) > > > Review request for Plasma. > > > Summary > ------- > > This should fix <https://bugs.kde.org/show_bug.cgi?id=215231>, but frankly I > don't understand why it was done this way in the first place... > > > This addresses bug 215231. > https://bugs.kde.org/show_bug.cgi?id=215231 > > > Diffs > ----- > > > /trunk/KDE/kdebase/workspace/plasma/desktop/applets/tasks/taskitemlayout.cpp > 1190987 > > Diff: http://svn.reviewboard.kde.org/r/5776/diff > > > Testing > ------- > > > Thanks, > > Ingomar > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel