changeset 18495:1ec884e5ff00 gui-release

waitbar.m: Force pixel units for waitbar figure (bug #41645). * waitbar.m: Use "pixel" units when creating waitbar figure so that the subsequent "position" property is always interpreted properly.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 20 Feb 2014 16:18:02 +0100
parents 3cac3d7f003f
children 4e0d72145c5a 2e7cad6f180c
files scripts/gui/waitbar.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/gui/waitbar.m	Thu Feb 20 11:52:58 2014 -0500
+++ b/scripts/gui/waitbar.m	Thu Feb 20 16:18:02 2014 +0100
@@ -106,7 +106,8 @@
     ## Save and restore current figure
     cf = get (0, "currentfigure");
 
-    hf = figure ("position", [250, 500, 400, 100],
+    hf = figure ("units", "pixels",
+                 "position", [250, 500, 400, 100],
                  "numbertitle", "off",
                  "menubar", "none", "toolbar", "none",
                  "integerhandle", "off",