Bug 36286 - Page showing incorrectly if the TabBar is moved
Summary: Page showing incorrectly if the TabBar is moved
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-11-26 10:33 UTC by Paul Johnson
Modified: 2017-09-01 03:20 UTC (History)
4 users (show)

Tags: ac, ios, tabbedpage, retest
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 36286 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Paul Johnson 2015-11-26 10:33:18 UTC
I have a simple custom renderer that moves the TabBar on iOS to the top of the screen. It works fine. However, if a ListView is placed under it and a background set on the ListView, the ListView only extends to where the tab bar was originally rather than full screen.

The source demonstrating this issue can be found here : https://github.com/nodoid/TabBarCustomViews

I have altered the code to alter the NativeView rather than the code presented but this still gives the "dead space" at the end of the page.
Comment 1 William Gilmour 2016-02-08 11:18:30 UTC
I had this problem and solved it by adding this function to the TabbedRenderer:

public override void ViewDidLayoutSubviews()
{
	base.ViewDidLayoutSubviews();

	if (View != null && View.Subviews != null && View.Subviews.Length > 0)
		View.Subviews[0].Frame = new CGRect(0.0f, height, View.Frame.Width, View.Frame.Height - height);
}
Comment 2 William Gilmour 2016-02-08 11:21:02 UTC
Sorry, where the variable 'height' is the height of the custom TabBar.
Comment 3 Paul Johnson 2016-02-08 13:04:31 UTC
Nice work around :) Doesn't really fix the bug though :(