Merge branch '0.1'
This commit is contained in:
Коммит
e50723e244
|
@ -79,10 +79,10 @@ namespace Xwt.GtkBackend
|
||||||
|
|
||||||
void HandleLabelDynamicSizeAllocate (object o, Gtk.SizeAllocatedArgs args)
|
void HandleLabelDynamicSizeAllocate (object o, Gtk.SizeAllocatedArgs args)
|
||||||
{
|
{
|
||||||
int unused;
|
int unused, oldHeight = wrapHeight;
|
||||||
Label.Layout.Width = Pango.Units.FromPixels (args.Allocation.Width);
|
Label.Layout.Width = Pango.Units.FromPixels (args.Allocation.Width);
|
||||||
Label.Layout.GetPixelSize (out unused, out wrapHeight);
|
Label.Layout.GetPixelSize (out unused, out wrapHeight);
|
||||||
if (wrapWidth != args.Allocation.Width) {
|
if (wrapWidth != args.Allocation.Width || oldHeight != wrapHeight) {
|
||||||
wrapWidth = args.Allocation.Width;
|
wrapWidth = args.Allocation.Width;
|
||||||
Label.QueueResize ();
|
Label.QueueResize ();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче