Last active
December 14, 2015 02:39
-
-
Save anddam/5014894 to your computer and use it in GitHub Desktop.
fix resize in octave fltk backend on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fltk_fix_resize | |
number_of_figures = get(0, "children")(1,1); | |
screen_size = get(0, "screensize"); | |
for figure_number = 1:number_of_figures | |
figure_position = get(figure_number, "position"); | |
set (figure_number, "position", screen_size); | |
drawnow() | |
set (figure_number, "position", figure_position); | |
endfor | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment