mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 05:14:24 +00:00
RelinkDialog: the missing-clips table shows its four columns across the dialog
The table was sized from its content with only fill columns, so it took its least width and cut every header. It takes the collection default (Fill): under the dialog's content-sized body it measures from its content, never sets the dialog's width and shows across it, its columns sharing that width; its height stays its rows'. The rows take the collection's cell rects (`cells`), so File Name, File Path and Status show in their columns.
This commit is contained in:
@@ -862,10 +862,10 @@ impl<K: Clone + PartialEq + Send + Sync + 'static> Model<K> {
|
||||
.select(SelectMode::Single)
|
||||
.selection(Bind::bound(&mut selection))
|
||||
.sort(self.layout.sort.clone())
|
||||
.sizing(Sizing::Content)
|
||||
.show_items(ui, &source, &mut |&row, icx| {
|
||||
let data = &rows[row];
|
||||
ListRow::new(data.owner.clone())
|
||||
.cells(icx.cells())
|
||||
.columns(&columns)
|
||||
.striped(icx.at % 2 == 1)
|
||||
.cell(FILE_NAME, file_name(&data.link.stored).to_owned())
|
||||
|
||||
Reference in New Issue
Block a user