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

 
 

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

Submitter:  -X- <jsh>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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>
Group 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:

http://www.mathworks.com/help/matlab/ref/uicontrol-properties.html#property_extent

Mike Miller <mtmiller>
Group Member
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:
   
   
Comment:
   

No files currently attached

 

Digest:
   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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.14-6db8.
    Corresponding source code