bugGNU Octave - Bugs: bug #63422, uitable columnwidth with a minimum...


bug #63422: uitable columnwidth with a minimum value of 30

Submitter:  Liang Tang <lt1234>
Submitted:  Sat 26 Nov 2022 02:52:11 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 7.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 26 Nov 2022 02:52:11 PM UTC, original submission:  

uitable is a mechanism to work with excel worksheets.  Bug report #63388 can be looked at as displaying different worksheets on
a same uitable.  This report is about the appearance of a worksheet.

Octave uitable syntax follows an older version of matlab uitable that matlab still supports.  uitable columnwidth can be a cell array.  Octave uitable columnwidth appears to have an undocumented lower bound near 30, which matlab does not have. 30 is a fairly large width.

Please use the example below.  The columnwidth remains the same after the specified width is below 30.  If you have matlab resource, you should find 1 is still a legal/accepted width in matlab.    
I would recommend that either the columnwidth follows the specified number or this lower bound  (and its reasoning) is documented as an incompatibility.

h=uitable(fid,'units','normalized', ...
'Position',[ 0.1 0.15 0.9 0.6  ], ...
'data',{'1111111' '1' '22'}, ...
'ColumnWidth',{100,100 100}, 'tag', 'example'); 

for ii=100:-10:10,
set(h, 'ColumnWidth', { 100, ii, 100});
set(fid, 'name', num2str(ii)); pause;

Liang Tang <lt1234>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lt1234 (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.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-8484.
    Corresponding source code