Skip to content

Commit 8879561

Browse files
authored
Removed unnuecessary Dock calls (#234)
1 parent b1ce5af commit 8879561

File tree

1 file changed

+0
-2
lines changed
  • articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets

1 file changed

+0
-2
lines changed

articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/optionsslider.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,12 @@ public OptionsSlider(TextureAtlas atlas)
8585
offBackground.TextureWidth = offBackgroundRegion.Width;
8686
offBackground.Width = 28f;
8787
offBackground.WidthUnits = DimensionUnitType.Absolute;
88-
offBackground.Dock(Gum.Wireframe.Dock.Left);
8988
innerContainer.AddChild(offBackground);
9089

9190
TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background");
9291

9392
// Create the middle track portion of the slider
9493
NineSliceRuntime middleBackground = new NineSliceRuntime();
95-
middleBackground.Dock(Gum.Wireframe.Dock.FillVertically);
9694
middleBackground.Texture = middleBackgroundRegion.Texture;
9795
middleBackground.TextureAddress = TextureAddress.Custom;
9896
middleBackground.TextureHeight = middleBackgroundRegion.Height;

0 commit comments

Comments
 (0)