Skip to content

Commit 7b7075d

Browse files
committed
to prevent the matRadGUI window beeing to big if used in MATLAB Online
added a switch to check if it is called from matlab online or not, the easiest way to check this is with isunix as matlab online runs with unix. Without this switch the initial GUI window can be a little bit smaller than fullscreen when run from matlab Desktop
1 parent dddf27c commit 7b7075d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

matRad/gui/matRad_MainGUI.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@
210210
if matRad_ispropCompat(obj.guiHandle,'WindowState')
211211
set(obj.guiHandle,'WindowState','maximized');
212212
end
213+
if matRad_cfg.isMatlab && isunix
214+
movegui(obj.guiHandle,'onscreen');
215+
end
213216

214217
if matRad_cfg.isOctave
215218
commonPanelProperties = {'Parent',obj.guiHandle,...

0 commit comments

Comments
 (0)