bugGNU Octave - Bugs: bug #44473, uicontrol "extent"...


bug #44473: uicontrol "extent" property returns too small width/height

Submitted by:  -X- <jsh>
Submitted on:  Sat 07 Mar 2015 02:32:26 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.0.0 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 08 Jul 2016 03:54:58 PM UTC, comment #3: 

Closing as a duplicate of a newer bug with more discussion going on now. See bug #48446.

Mike Miller <mtmiller>
Project Administrator
Tue 02 Jun 2015 04:36:23 PM UTC, comment #2: 

Retagging release from 4.0.0-rc1 to 4.0.0.

John W. Eaton <jwe>
Project Administrator
Sat 07 Mar 2015 10:39:31 PM UTC, comment #1: 

Thanks for your bug report. I can confirm this on Linux and Windows XP. The "extent" property is correct for ordinary text objects, but not for a uicontrol like your example. The first two elements of the "extent" vector should also be zero, as mentioned here:


Mike Miller <mtmiller>
Project Administrator
Sat 07 Mar 2015 02:32:26 PM UTC, original submission:  

get( h, 'extents' ) returns too small width/height.

hf  = figure;
h   = uicontrol( 'parent', hf, 'style', 'push', 'string', 'foo', 'fontsize', 32 );
pos = get( h, 'position' );
ex  = get( h, 'extent' );
pos(3:4) = ex(3:4);
set( h, 'position', pos )

It seems multiplying ex with a factor of 2 works.

-X- <jsh>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jsh (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-08 mtmiller StatusConfirmed => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #48446
    2015-06-02 jwe Release4.0.0-rc1 => 4.0.0
    2015-03-07 mtmiller CategoryGUI => Plotting with OpenGL
        Item GroupNone => Incorrect Result
        StatusNone => Confirmed
        Summaryget( \'extents\' ) returns too small width/height => uicontrol "extent" property returns too small width/height

    Back to the top

    Powered by Savane 3.5