Aligning text and edit uicontrols

Viewed 4917

I am creating GUI and I want to have inputs and results there.

I have text fields as labels and edit or popup for inputs. When I have

uicontrol('style','text','string','foo','units','centimeters','position',[1 1 1 0.5]);
uicontrol('style','edit','string','foo','units','centimeters','position',[2 1 1 0.5]);

I get the foo strings slightly misaligned, baseline of the text field is slightly above the baseline of edit/pop field.

How can I align those fields?

2 Answers
Related