mirror of https://github.com/buggins/dlangui.git
Fix setting layoutWidth/layoutHeight in points.
This commit is contained in:
parent
cde0731877
commit
8a7245ba24
|
@ -1373,9 +1373,9 @@ public:
|
||||||
int lw = layoutWidth;
|
int lw = layoutWidth;
|
||||||
// constant value support
|
// constant value support
|
||||||
if (!(isPercentSize(lh) || isSpecialSize(lh)))
|
if (!(isPercentSize(lh) || isSpecialSize(lh)))
|
||||||
dy = lh;
|
dy = lh.toPixels();
|
||||||
if (!(isPercentSize(lw) || isSpecialSize(lw)))
|
if (!(isPercentSize(lw) || isSpecialSize(lw)))
|
||||||
dx = lw;
|
dx = lw.toPixels();
|
||||||
// apply min/max width and height constraints
|
// apply min/max width and height constraints
|
||||||
int minw = minWidth;
|
int minw = minWidth;
|
||||||
int maxw = maxWidth;
|
int maxw = maxWidth;
|
||||||
|
|
Loading…
Reference in New Issue