Made alignment to bottom for button strip in photo editor.

This commit is contained in:
23rd 2021-05-02 12:24:48 +03:00
parent edfd9bedc1
commit df7026b59c
2 changed files with 5 additions and 3 deletions

View file

@ -11,7 +11,7 @@ using "ui/widgets/widgets.style";
using "ui/chat/chat.style";
photoEditorControlsHeight: 100px;
photoEditorControlsTopSkip: 40px;
photoEditorControlsBottomSkip: 20px;
photoEditorButtonIconFg: mediaviewPipControlsFg;
photoEditorButtonIconFgOver: mediaviewPipControlsFgOver;

View file

@ -204,8 +204,6 @@ PhotoEditorControls::PhotoEditorControls(
}, lifetime());
const auto &buttonsTop = st::photoEditorControlsTopSkip;
rpl::combine(
sizeValue(),
_mode.value()
@ -216,6 +214,10 @@ PhotoEditorControls::PhotoEditorControls(
return;
}
const auto buttonsTop = height()
- st::photoEditorControlsBottomSkip
- _transformButtons->height();
const auto &current = _transformButtons->isHidden()
? _paintButtons
: _transformButtons;