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:  Fixed Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * Any
Fixed Release:  11.1.0 (current default) Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 27 Oct 2025 09:17:10 PM UTC, comment #2: 

Thanks.

Liang Tang <lt1234>
Mon 27 Oct 2025 05:25:59 PM UTC, comment #1: 

This small issue turned out to take quite a long time to fix.  The problem was not with Octave, but with the Qt library behind it.  I fixed it in this changeset https://hg.savann ... /rev/824e173d6a40.  In addition, I added support for the option "fit" to the ColumnWidth property.  This will be a part of the 11.1.0 release.

Rik <rik5>
Group administrator
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.

fid=figure;
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;
end

Liang Tang <lt1234>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-10-27 rik5 Operating SystemMicrosoft Windows Any
        Fixed ReleaseNone 11.1.0 (current default)
    2025-10-27 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-1b88.
    Corresponding source code