fpaquet / gtksheet

A spreadsheet widget for Gtk+
http://fpaquet.github.io/gtksheet/
Other
27 stars 9 forks source link

a button cannot be shrinked in a normal cell or smaller in gtksheet. #11

Closed songqingshan closed 5 years ago

songqingshan commented 5 years ago

A gtkbutton cannot be shrinked in a normal cell or to smaller in gtksheet. The column width seems can not be customised or controlled.

fpaquet commented 5 years ago

The column width can be changed programmatically by setting "width" property.

To circumvent cell content allocation policy, you can pack your button into a box with disabled "fill" property.

fpaquet commented 5 years ago

https://fpaquet.github.io/gtksheet/reference/GtkSheetColumn.html#GtkSheetColumn.properties

songqingshan commented 5 years ago

Hello Fredy,

I can not circumvent cell content allocation policy because I need the button and fill property simultaneously . In other words, I use the button to fill the cell. Thanks, Song


From: Fredy Paquet notifications@github.com Sent: March 9, 2019 5:41 AM To: fpaquet/gtksheet Cc: songqingshan; Author Subject: Re: [fpaquet/gtksheet] a button cannot be shrinked in a normal cell or smaller in gtksheet. (#11)

The column width can be changed programmatically by setting "width" property.

To circumvent cell content allocation policy, you can pack your button into a box with disabled "fill" property.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/fpaquet/gtksheet/issues/11#issuecomment-471169953, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApTBUymSuu_Ziv908ltMwQNRgdsbbMmZks5vU533gaJpZM4ZdVP5.