* Blank panel now has no spacing 4.x-dev

Wed, 23 Dec 2020 09:31:34 +0200

author
cemkalyoncu
date
Wed, 23 Dec 2020 09:31:34 +0200
branch
4.x-dev
changeset 1526
591c159018bc
parent 1525
ab43d641c7c4
child 1527
68076e74bc19

* Blank panel now has no spacing

.hgignore file | annotate | diff | comparison | revisions
Source/Gorgon/Widgets/Generator.cpp file | annotate | diff | comparison | revisions
--- a/.hgignore	Tue Dec 22 21:45:51 2020 +0200
+++ b/.hgignore	Wed Dec 23 09:31:34 2020 +0200
@@ -37,6 +37,7 @@
 
 CMakeSettings.json
 .vs
+.vscode
 syntax: regexp
 .*\.kdev4(_.*)?
 
--- a/Source/Gorgon/Widgets/Generator.cpp	Tue Dec 22 21:45:51 2020 +0200
+++ b/Source/Gorgon/Widgets/Generator.cpp	Wed Dec 23 09:31:34 2020 +0200
@@ -1186,7 +1186,7 @@
             .AddIndex(1)
         ;
         
-        if(missingedge != -1)
+        if(missingedge > -1)
             bg.Background.SetAnimation(PanelBorder(missingedge));
         
         
@@ -1207,6 +1207,9 @@
         case -1:
             padding = Spacing;
             break;
+        case -2:
+            padding = 0;
+            break;
         }
         
         bg.SetPadding(padding);
@@ -1268,7 +1271,7 @@
     }
     
     UI::Template SimpleGenerator::BlankPanel() {
-        auto tmp = makepanel(-1, true);
+        auto tmp = makepanel(-2, true);
         
         return tmp;
     }

mercurial