toptabbedpage-xamarin-forms icon indicating copy to clipboard operation
toptabbedpage-xamarin-forms copied to clipboard

ToolbarItems' position is changing when we are switching tabs

Open toussam opened this issue 6 years ago • 4 comments

Hi,

I have an issue similar to #26 .

I am using your control to display two ContentPages and I added two ToolbarItems to it. On iOS, when I am switching the tabs with a slide, the ToolbarItems are changing their position between each other. Then, if I am switching the tabs by tapping, the ToolbarItems are taking their original position.

I know that @Eldin66 made the slide optional, but if it's possible I would like to keep it. Could you fix this issue ?

Thank you in advance for your response and your time ! Best regards,

toussam avatar Feb 22 '19 11:02 toussam

hi @tuyen-vuduc ,

Any help ? :)

Best regards,

toussam avatar Feb 27 '19 10:02 toussam

Hi @toussam
I have an same issue , Did you solve it.

Best regards,

fengchao1000 avatar Jan 14 '21 04:01 fengchao1000

Hi @fengchao1000 :)

It's been almost two years since I opened this issue therefore I don't remember if I fixed it. 😅

If you are using the last release and still got the problem, I would advice you to import or fork the project and fix it yourself. That or using another plugin. 😉

Best regards,

toussam avatar Jan 18 '21 10:01 toussam

Hi @toussam

Thank you for your reply. I fixed the issue, Modify the code as follows:

//navigationItem.SetRightBarButtonItems(toolbarItems.Select(x => x.ToUIBarButtonItem()).ToArray(), false); navigationItem.SetRightBarButtonItems(toolbarItems.Select(x => x.ToUIBarButtonItem()).Reverse().ToArray(), false);

in TopTabbedRendererSelection.cs

Best regards,

fengchao1000 avatar Jan 23 '21 09:01 fengchao1000