X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ecere%2Fsrc%2Fgui%2FWindow.ec;h=7977ff701f5e4c83cc33b6d4a76836c2653a83b0;hb=9d608db4b0074443ed92974bff7706307c767e9f;hp=336b21ff3d24ce67523292bf67e8f6c42d54d292;hpb=ff706f7a939a5faf08bd973d38e28394fd92187b;p=sdk diff --git a/ecere/src/gui/Window.ec b/ecere/src/gui/Window.ec index 336b21f..7977ff7 100644 --- a/ecere/src/gui/Window.ec +++ b/ecere/src/gui/Window.ec @@ -8721,7 +8721,7 @@ public: if(parent && parent.created && !nonClient) parent.OnChildResized(this, x, y, w, h); } } - get { value = clientSize; } + get { value = this ? clientSize : { 0, 0 }; } }; property Size initSize { get { value = sizeAnchor.size; } }; @@ -9173,7 +9173,7 @@ public: property Point scroll { property_category $"Behavior" - set { SetScrollPosition(value.x, value.y); } + set { if(this) SetScrollPosition(value.x, value.y); } get { value = scroll; } }; @@ -9336,7 +9336,7 @@ public: property Font fontObject { get { return usedFont ? usedFont.font : null; } }; property Point clientStart { get { value = clientStart; } }; property Point absPosition { get { value = absPosition; } }; - property Anchor normalAnchor { get {value = normalAnchor; } }; + property Anchor normalAnchor { get { value = normalAnchor; } }; // property Size normalSizeAnchor { get { value = normalSizeAnchor; } }; property bool active { get { return (bool)active; } }; property bool created { get { return (bool)created; } };