Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Page Content shifts upward when one Label's text changes

$
0
0

I have a TabbedPage containing a number of CarouselPages each containing some ContentPages. On the ContentPages, I have buttons that change the text of one of the labels on the page. Essentially, there is a question, and the buttons correspond to possible answers to the question.

The first time I change the answer text, the entire page shifts up several pixels. The tabs at the bottom and the navigation bar at the top do not change, only the contents of the StackLayout inside the ContentPage. Notably, every single page within that CarouselPage shifts upward if I change the text of any answer. The CarouselPages attached to other TabbedPages are unaffected.

If I set the text to the same as its current value, nothing happens. There aren't any newlines being added in. My guess so far is that changing the text re-triggers the CarouselPage's rendering event, but I don't know what event to look for or why it would shift everything up. Any thoughts on what the issue might be and how to fix it?


Viewing all articles
Browse latest Browse all 58056

Trending Articles