diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-03 12:48:04 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-03 12:48:04 +0200 |
| commit | 6fd66d56dd5789eae345a517dc42f3488cf7aca6 (patch) | |
| tree | d8668c1870fa1cb91edac7d3d788aeed174a4c1f /src/GraphicObjects/GenericStack.cs | |
| parent | fcfe9c2189fbbb00b0901b246e401b0f05413c7f (diff) | |
* GOLib.sln:
* GOLib.csproj:
* GOLIBTest_0.cs:
* GOLIBTest_fps.cs:
* ReflexionExtensions.cs:
* Label.cs:
* test4.goml:
* GenericStack.cs:
* PrivateContainer.cs:
* CompilerServices.cs:
* Tests.csproj:
* member.svg:
* GOLIBTest_TypeViewer.cs:
* tmpMembers.goml:
* testTypeViewer.goml: Type viewer
* Group.cs:
* Window.cs:
* GraphicObject.cs: set OnLayoutChanges to public
* Point.cs: Implement length
Diffstat (limited to 'src/GraphicObjects/GenericStack.cs')
| -rw-r--r-- | src/GraphicObjects/GenericStack.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/GenericStack.cs b/src/GraphicObjects/GenericStack.cs index 3b96d548..20130576 100644 --- a/src/GraphicObjects/GenericStack.cs +++ b/src/GraphicObjects/GenericStack.cs @@ -125,13 +125,13 @@ namespace go else if (gobjs.Length == 1) {
int sz = Children.Where(ch=>ch.Visible).Except (gobjs).Sum (g => g.Slot.Width);
if (sz < Slot.Width) {
- gobjs [0].Slot.Width = Slot.Width - sz - Spacing;
+ gobjs [0].Slot.Width = Slot.Width - sz - (Children.Count+1) * Spacing;
int idx = Children.IndexOf (gobjs [0]);
if (idx > 0 && idx < Children.Count - 1)
gobjs [0].Slot.Width -= Spacing;
-
if (gobjs [0].LastSlots.Width != gobjs [0].Slot.Width) {
gobjs [0].bmp = null;
+ //gobjs [0].OnLayoutChanges (LayoutingType.Width);
gobjs [0].LastSlots.Width = gobjs [0].Slot.Width;
}
}
|