Skip to content

Commit a70f028

Browse files
Added childWidth setting for MacOSX
1 parent 5a6c804 commit a70f028

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

RavelCAPI

model/windowInformation.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,14 @@ namespace minsky
222222
offsetLeft = left;
223223
offsetTop = top;
224224

225-
#if defined(MAC_OSX_TK)
225+
#ifdef MAC_OSX_TK
226+
childWidth = cWidth;
226227
childHeight = cHeight;
227-
return;
228-
#endif
229-
228+
#else
230229
auto scrollBarOffs=hasScrollBars? 20:0;
231230
childWidth = cWidth - scrollBarOffs;
232231
childHeight = cHeight - scrollBarOffs;
233-
232+
#endif
234233

235234
#ifdef USE_WIN32_SURFACE
236235
parentWindowId = reinterpret_cast<HWND>(parentWin);

0 commit comments

Comments
 (0)