Skip to content

Commit cec0b17

Browse files
committed
fixes #96
- add `var alignOnBaseline` to `FlowPanel`
1 parent ecdb5d2 commit cec0b17

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/scala/scala/swing/FlowPanel.scala

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,12 @@ class FlowPanel(alignment: FlowPanel.Alignment.Value)(contents0: Component*) ext
4343

4444
private def layoutManager: FlowLayout = peer.getLayout.asInstanceOf[FlowLayout]
4545

46-
def vGap: Int = layoutManager.getVgap
47-
def vGap_=(n: Int): Unit = layoutManager.setVgap(n)
48-
def hGap: Int = layoutManager.getHgap
49-
def hGap_=(n: Int): Unit = layoutManager.setHgap(n)
46+
def vGap : Int = layoutManager.getVgap
47+
def vGap_=(n: Int): Unit = layoutManager.setVgap(n)
48+
49+
def hGap : Int = layoutManager.getHgap
50+
def hGap_=(n: Int): Unit = layoutManager.setHgap(n)
51+
52+
def alignOnBaseline : Boolean = layoutManager.getAlignOnBaseline
53+
def alignOnBaseline_=(value : Boolean): Unit = layoutManager.setAlignOnBaseline(value)
5054
}

0 commit comments

Comments
 (0)