Skip to content

Commit f9d4f06

Browse files
committed
Remove textfield.setSize() methods in W_Marker.pde #1195
1 parent 513407f commit f9d4f06

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

OpenBCI_GUI/W_Marker.pde

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class W_Marker extends Widget {
2727
private Textfield markerReceivePortTextfield;
2828
private String markerReceiveIP = "127.0.0.1";
2929
private int markerReceivePort = 12350;
30-
private final int MARKER_RECEIVE_TEXTFIELD_WIDTH = 100;
31-
private final int MARKER_RECEIVE_TEXTFIELD_HEIGHT = 20;
30+
private final int MARKER_RECEIVE_TEXTFIELD_WIDTH = 240;
31+
private final int MARKER_RECEIVE_TEXTFIELD_HEIGHT = 22;
3232

3333
private hypermedia.net.UDP udpReceiver;
3434

@@ -144,11 +144,9 @@ class W_Marker extends Widget {
144144

145145
RectDimensions ipTextfieldPosition = markerUIGrid.getCellDims(3, 1);
146146
markerReceiveIPTextfield.setPosition(ipTextfieldPosition.x, ipTextfieldPosition.y + HALF_CELL_PADDING);
147-
markerReceiveIPTextfield.setSize(ipTextfieldPosition.w, ipTextfieldPosition.h - CELL_PADDING);
148147

149148
RectDimensions portTextfieldPosition = markerUIGrid.getCellDims(3, 3);
150149
markerReceivePortTextfield.setPosition(portTextfieldPosition.x, portTextfieldPosition.y + HALF_CELL_PADDING);
151-
markerReceivePortTextfield.setSize(portTextfieldPosition.w, portTextfieldPosition.h - CELL_PADDING);
152150
}
153151

154152
private void createMarkerButtons() {

0 commit comments

Comments
 (0)