aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-05-25 08:11:05 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-05-25 08:11:05 +0200
commit63cb46716cd042c2884687be2d47f7a5ce35e9c6 (patch)
tree2abb2f79ae281585e7dd524d598515ab9470f9f8 /src
parentb92a60c591756df6c2a93c212f425290b0a559ec (diff)
debug combobox
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/GraphicObject.cs11
-rw-r--r--src/GraphicObjects/ListBox.cs3
-rw-r--r--src/Input/KeyboardState.cs2
3 files changed, 10 insertions, 6 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs
index 549f9a91..6175b2d8 100644
--- a/src/GraphicObjects/GraphicObject.cs
+++ b/src/GraphicObjects/GraphicObject.cs
@@ -398,7 +398,8 @@ namespace Crow
if (Parent is GenericStack)
(Parent as GraphicObject).RegisterForLayouting (LayoutingType.ArrangeChildren);
- RegisterForLayouting (LayoutingType.Sizing);
+ if (_isVisible)
+ RegisterForLayouting (LayoutingType.Sizing);
RegisterForGraphicUpdate ();
NotifyValueChanged ("Visible", _isVisible);
@@ -803,10 +804,10 @@ namespace Crow
//size constrain
if (Slot.Width < MinimumSize.Width) {
Slot.Width = MinimumSize.Width;
- NotifyValueChanged ("WidthPolicy", Measure.Stretched);
+ //NotifyValueChanged ("WidthPolicy", Measure.Stretched);
} else if (Slot.Width > MaximumSize.Width && MaximumSize.Width > 0) {
Slot.Width = MaximumSize.Width;
- NotifyValueChanged ("WidthPolicy", Measure.Stretched);
+ //NotifyValueChanged ("WidthPolicy", Measure.Stretched);
}
} else
Slot.Width = 0;
@@ -830,10 +831,10 @@ namespace Crow
//size constrain
if (Slot.Height < MinimumSize.Height) {
Slot.Height = MinimumSize.Height;
- NotifyValueChanged ("HeightPolicy", Measure.Stretched);
+ //NotifyValueChanged ("HeightPolicy", Measure.Stretched);
} else if (Slot.Height > MaximumSize.Height && MaximumSize.Height > 0) {
Slot.Height = MaximumSize.Height;
- NotifyValueChanged ("HeightPolicy", Measure.Stretched);
+ //NotifyValueChanged ("HeightPolicy", Measure.Stretched);
}
} else
Slot.Height = 0;
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index 54871241..8daf9550 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -207,6 +207,9 @@ namespace Crow
}
protected void _list_LayoutChanged (object sender, LayoutingEventArgs e)
{
+#if DEBUG_LAYOUTING
+ Debug.WriteLine("list_LayoutChanged");
+#endif
if (_gsList.Orientation == Orientation.Horizontal) {
if (e.LayoutType == LayoutingType.Width)
_gsList.Width = approxSize;
diff --git a/src/Input/KeyboardState.cs b/src/Input/KeyboardState.cs
index 283b4a69..e3784bc3 100644
--- a/src/Input/KeyboardState.cs
+++ b/src/Input/KeyboardState.cs
@@ -236,7 +236,7 @@ namespace Crow
internal void EnableBit(int offset)
{
- ValidateOffset(offset);
+ //ValidateOffset(offset);
int int_offset = offset / 32;
int bit_offset = offset % 32;