[Kstars-devel] info boxes

Alexey Khudyakov alexey.skladnoy at gmail.com
Mon Dec 7 04:08:27 CET 2009


> At least I have learned something about the code.
>
> I think you should not call adjust() in InfoBoxWidget::InfoBoxWidget() through
> updateSize(). The sky map seems to be created with a size smaller than the
> window and its size is only adjusted after the info boxes are created. If one
> info box is placed somewhere outside the initial region of the sky map but
> inside the final region of the sky map, it will be made sticky. adjust() should
> be called for the first time when the resize of the sky map takes place (or the
> sky map should be resized before the info boxes are created).
>
> And also at some time during initialization the geo box seems to touch the
> right and lower edges and is set to be sticking there, even if its starting
> position is set to (0,0). If adjust() does not modify the m_anchor this does
> not happen. I didn't find out when this happens though.

Yes. This is problem. I think this could be solved if adjust() is called only if
visible and if it's invisible delay call until it became visible

And again thank you for pointing out this bug.


More information about the Kstars-devel mailing list