mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -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;
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ class GridCtrl : public Ctrl
|
|||
{
|
||||
min = 5; max = 1000000;
|
||||
pos = npos = 0;
|
||||
id = uid = n = 0;
|
||||
id = uid = n = 0;
|
||||
prop = 1;
|
||||
size = nsize = 0;
|
||||
tsize = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue