Proportional layout philosophy?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Proportional layout philosophy?

Uko2
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
Reply | Threaded
Open this post in threaded view
|

Re: Proportional layout philosophy?

Nicolai Hess


2015-05-01 14:15 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
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.