You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass in the default text to the TextBox constructor, I end up with a TextBox that is too short for the text.
I did not see a way to override the width. Is there some setting I am missing, or is nanogui miscalculating the string width based on font?
Window* window = new Window(screen, "Matrix Settings");
window->set_layout(new BoxLayout(Orientation::Vertical, Alignment::Middle, 6, 6));
new Label(window, "Rows", "sans");
TextBox* editRows = new TextBox(window, "32");
editRows->set_editable(true);
new Label(window, "Cols", "sans");
TextBox* editCols = new TextBox(window, "64");
editCols->set_editable(true);;
TextBox* editDisplayText = new TextBox(window, "Default text to edit");
editDisplayText->set_editable(true);
Details:
Windows 10, VS2019, clang-cl
git: master branch, last commit was Feb 5,2022 : c650530
The text was updated successfully, but these errors were encountered:
When I pass in the default text to the TextBox constructor, I end up with a TextBox that is too short for the text.
I did not see a way to override the width. Is there some setting I am missing, or is nanogui miscalculating the string width based on font?
Details:
Windows 10, VS2019, clang-cl
git: master branch, last commit was Feb 5,2022 : c650530
The text was updated successfully, but these errors were encountered: