Skip to content

Commit 42fd416

Browse files
committed
Module needs height adjustment on Mac
1 parent 1386bb1 commit 42fd416

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Interface/Application/Module.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>245</width>
10-
<height>65</height>
10+
<height>68</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">

src/Interface/Application/ModuleWidget.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,14 @@ namespace
210210
const int extraWidthThreshold = 5;
211211
const int smushFactor = 15;
212212
const int titleFontSize = 8;
213+
const int widgetHeightAdjust = 0;
213214
#else
214215
const int moduleWidthThreshold = 80;
215216
const int extraModuleWidth = 5;
216217
const int extraWidthThreshold = 5;
217218
const int smushFactor = 15;
218219
const int titleFontSize = 12;
220+
const int widgetHeightAdjust = 10;
219221
#endif
220222
}
221223

@@ -279,6 +281,7 @@ ModuleWidget::ModuleWidget(NetworkEditor* ed, const QString& name, SCIRun::Dataf
279281
resize(width() - smushFactor, height());
280282
//std::cout << "\tNew width: " << width() << std::endl;
281283
}
284+
resize(width(), height() + widgetHeightAdjust);
282285

283286
connect(optionsButton_, SIGNAL(clicked()), this, SLOT(toggleOptionsDialog()));
284287
makeOptionsDialog();

0 commit comments

Comments
 (0)