bugGNU Octave - Bugs: bug #62504, Support setting uitable()...

 
 

bug #62504: Support setting uitable() columnwidth to "fit"

Submitter:  Glite <linuxbckp>
Submitted:  Sun 22 May 2022 04:06:16 AM UTC
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Need Info Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sun 29 May 2022 02:13:13 AM UTC, comment #5: 

Actually we are both right.
That's bacause Matlab has changed the behavior of 'auto' since Matlab r2020b.
After Matlab r2020b:
- 'auto' no longer fills the drawn table to the whole uitable area. Instead, 'auto' will only automacally change column widths according to the contents theirself, which leaves blank to the uitable area.
- add '1x' to let one column change to an uncertain column width, which leaves no blank to the uitable area.
- add 'fit' to fit column names and data, which is also a part of the behavoir of the new 'auto'.

For conbined usage of 'auto', '1x' and 'fit', see https://www.bilibili.com/read/cv7779724/

Glite <linuxbckp>
Sat 28 May 2022 09:20:41 AM UTC, comment #4: 

The screenshot looks just like having set "columnwidth" to "auto" to me.

Markus Mützel <mmuetzel>
Project Member
Mon 23 May 2022 03:32:04 AM UTC, comment #3: 

fit is different from auto.
You can see the picture https://savannah.gnu.org/bugs/download.php?file_id=53241 to know how "fit" works.

Glite <linuxbckp>
Sun 22 May 2022 05:44:27 PM UTC, comment #2: 

Is "fit" a synonym to "auto"? Or does it do something different?

Markus Mützel <mmuetzel>
Project Member
Sun 22 May 2022 04:07:18 AM UTC, comment #1: 

Sorry, I mean uitable() but wrong typed on title.

Glite <linuxbckp>
Sun 22 May 2022 04:06:16 AM UTC, original submission:  

The column=fit key-value can let the total width of all columns be equal to window.
Here is a demo code:

>> a=uitable('data', eye(3, 3), 'columnwidth', 'fit')

error: _go_uitable_: set: expecting either 'auto' or a cell of pixel values or auto., unable to create graphics handle
error: called from
    uitable at line 224 column 8

Glite <linuxbckp>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by linuxbckp (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 project members can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-22 mmuetzel StatusNone Need Info
    2022-05-22 mmuetzel Item GroupMatlab Compatibility Feature Request
        Release6.4.0 dev
        Operating SystemGNU/Linux Any
        SummaryMATLAB supports uimenu() columnwidth=fit now Support setting uitable() columnwidth to "fit"
    2022-05-22 linuxbckp Attached File- Added ksnip_20220522-113824.png, #53241

    Back to the top


    Powered by Savane 3.9