[Kst] [Bug 120884] Text view object resize behaviour is incorrect in some cases

netterfield at astro.utoronto.ca netterfield at astro.utoronto.ca
Fri Jan 27 23:18:59 CET 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From netterfield astro utoronto ca  2006-01-27 23:18 -------
The current behavior is intentional, if surprising.

The problem is with the definition of 'text size', which was inherited from the definition for axis labels: size 0 is supposed to mean 12 point for some default size plot (don't remember exactly what size...).  If you then make the plot bigger, the label should grow.  If you shrink the plot, the labels should get smaller (down to a floor size).

Now, what about a label that is the child of a plot, other than axis labels?  It would be surprising indeed if their size had a different definition.  So, in calculating the size the font should be, we use the dimensions of the parent.  If a label of text size '0' is the child of a big plot, the displayed font should be larger than if it is the parent of a small plot. (ie, parented floating labels have the same behavior as axis labels).

Of course the label could be owned by things other than a plot, like an ellipse in the bug report.  So..... the current behavior, at least, is usable, once understood.

So the proposed patch, at least tentativly, is "not accepted=me".

More information about the Kst mailing list