mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-09 03:24:59 -06:00
GridCtrl: Cosmetics..
git-svn-id: svn://ultimatepp.org/upp/trunk@4334 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
144353be5e
commit
dcd9130e23
2 changed files with 2 additions and 5 deletions
|
|
@ -73,15 +73,12 @@ GridCtrl::ItemRect& GridCtrl::ItemRect::Size(int n, bool hv)
|
|||
{
|
||||
hidden = n == 0;
|
||||
|
||||
n = hv ? Ctrl::HorzLayoutZoom(n) : Ctrl::VertLayoutZoom(n);
|
||||
|
||||
if(!hidden)
|
||||
{
|
||||
n = hv ? Ctrl::HorzLayoutZoom(n) : Ctrl::VertLayoutZoom(n);
|
||||
if(n < min) { n = min; ismin = true; }
|
||||
if(n > max) { n = max; ismax = true; }
|
||||
}
|
||||
else
|
||||
n = 0;
|
||||
|
||||
size = nsize = n;
|
||||
return *this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue