diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:17:39 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-16 15:17:39 +0200 |
| commit | 9d6c19a3a9890c348fda39734e83b4eb69533a69 (patch) | |
| tree | b8faa6dd8fe77623c91a1463804cc011562c3b2d /src/GraphicObjects/Popper.cs | |
| parent | 92f6458d4b4935762cb60afbc0750d2c9c1e5497 (diff) | |
debug and typo
Diffstat (limited to 'src/GraphicObjects/Popper.cs')
| -rw-r--r-- | src/GraphicObjects/Popper.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index 1ec6e37a..e1a02fc6 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -21,6 +21,11 @@ namespace go [DefaultTemplate("#go.Templates.Popper.goml")]
public class Popper : TemplatedContainer
{
+ #region CTOR
+ public Popper() : base()
+ {
+ }
+ #endregion
bool _isPopped;
string title;
string image;
@@ -77,9 +82,6 @@ namespace go Content.Top = 0;
}
}
- public Popper() : base()
- {
- }
public override void ClearBinding ()
{
//ensure popped window is cleared
@@ -90,8 +92,8 @@ namespace go tc.DeleteWidget (Content);
}
}
-
base.ClearBinding ();
+
}
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true
@@ -153,7 +155,8 @@ namespace go return;
if (Content != null) {
Content.Visible = true;
- tc.AddWidget (Content);
+ if (Content.Parent == null)
+ tc.AddWidget (Content);
}
Pop.Raise (this, e);
}
@@ -162,7 +165,7 @@ namespace go IGOLibHost tc = TopContainer;
if (tc == null)
return;
- tc.DeleteWidget (Content);
+ Content.Visible = false;
Unpop.Raise (this, e);
}
|