mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 03:17:43 +00:00
Keep portrait frames for Organize pages
This commit is contained in:
@@ -454,7 +454,9 @@ impl<'a> PageThumbnails<'a> {
|
||||
// The New Slide row's key comes after the pages' and the section headers'.
|
||||
let new_page = count + groups.len();
|
||||
let tail: Vec<TailRow<usize>> = if new_page_row { vec![TailRow::new(new_page, words.new_page.clone())] } else { Vec::new() };
|
||||
let aspect = if count == 0 { 1.0 } else { aspect_of(source, 0) };
|
||||
// Organize uses a portrait page frame for every page, so landscape pages fit inside it
|
||||
// instead of collapsing the room reserved for the controls around the picture.
|
||||
let aspect = if organize { 0.75 } else if count == 0 { 1.0 } else { aspect_of(source, 0) };
|
||||
let mut grid = TileGrid::<usize>::new(label)
|
||||
.id_source(id)
|
||||
.selection(Bind::bound(&mut *picked))
|
||||
|
||||
Reference in New Issue
Block a user