2015-05-01 14:15 GMT+02:00 Yuriy Tymchuk <[email protected]>:

> Hi,
>
> I want to change the size of my nautilus plugin, as I don’t need it always
> to be as big as it is by default and it takes too much space. But as soon
> as I use #hight: to change the hight, it gets set back. I guess it’s done
> by the layout, but I’m not sure, as putting halt somewhere in layout
> methods means killing your image. Maybe someone is familiar with this?
>
> Uko
>


The problem with the plugins is, they have a LayoutFrame constructed when
the window is build. If your plugin
has an initial hight of 50 pixel, this height defines the frame for this
plugin *and* for the other components around.
If you change the height, it is resized based on its LayoutFrame and even
if you change the properties of this
LayoutFrame, the others (for the source code / comment text area for
examle) are unchanged.

I don't know if we have a more advanced/flexible way to define the layout.

Reply via email to