File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Telegram/SourceFiles/info Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -669,6 +669,7 @@ void TopBar::createSelectionControls() {
669
669
) | rpl::start_to_stream (
670
670
_selectionActionRequests,
671
671
_cancelSelection->lifetime ());
672
+
672
673
_selectionText = wrap (Ui::CreateChild<Ui::FadeWrap<Ui::LabelWithNumbers>>(
673
674
this ,
674
675
object_ptr<Ui::LabelWithNumbers>(
@@ -679,6 +680,11 @@ void TopBar::createSelectionControls() {
679
680
st::infoTopBarScale));
680
681
_selectionText->setDuration (st::infoTopBarDuration);
681
682
_selectionText->entity ()->resize (0 , _st.height );
683
+ _selectionText->naturalWidthValue (
684
+ ) | rpl::skip (1 ) | rpl::start_with_next ([=] {
685
+ updateSelectionControlsGeometry (width ());
686
+ }, _selectionText->lifetime ());
687
+
682
688
_forward = wrap (Ui::CreateChild<Ui::FadeWrap<Ui::IconButton>>(
683
689
this ,
684
690
object_ptr<Ui::IconButton>(this , _st.mediaForward ),
You can’t perform that action at this time.
0 commit comments