side-bar measure fixed

This commit is contained in:
Vladimir Enchev
2015-03-23 16:16:34 +02:00
parent 157d8d53d8
commit faa40b7c1f

View File

@ -28,6 +28,22 @@ function onSlideContentPropertyChanged(data: dependencyObservable.PropertyChange
} }
(<proxy.PropertyMetadata>common.SideBar.slideContentProperty.metadata).onSetNativeValue = onSlideContentPropertyChanged; (<proxy.PropertyMetadata>common.SideBar.slideContentProperty.metadata).onSetNativeValue = onSlideContentPropertyChanged;
class SideBarContent extends contentView.ContentView {
public _bar: SideBar
constructor(bar: SideBar) {
super();
this._bar = bar;
}
public requestLayout() {
super.requestLayout();
this._bar.requestLayout();
}
}
export class SideBar extends common.SideBar { export class SideBar extends common.SideBar {
public _mainContentHost: contentView.ContentView public _mainContentHost: contentView.ContentView
public _slideContentHost: contentView.ContentView public _slideContentHost: contentView.ContentView
@ -35,7 +51,7 @@ export class SideBar extends common.SideBar {
constructor() { constructor() {
super(); super();
this._mainContentHost = new contentView.ContentView(); this._mainContentHost = new SideBarContent(this);
this._slideContentHost = new contentView.ContentView(); this._slideContentHost = new contentView.ContentView();
this._ios = TKSideDrawer.alloc().initWithHostview(this._mainContentHost.ios); this._ios = TKSideDrawer.alloc().initWithHostview(this._mainContentHost.ios);