PagingMenuController icon indicating copy to clipboard operation
PagingMenuController copied to clipboard

some part of View2 out of range and appear on View1

Open SuYungCheng opened this issue 8 years ago • 6 comments

I implement two Views(view1 and view2) first it shows view1 on my screen , but on the right of the screen , there shows the View2's left part after I slide to View2, and go back to View1. It become normal. http://imgur.com/a/dzi7H I use Swift Xcode 7.2.1

    let storyboard_first = UIStoryboard(name: "First", bundle: nil)
    let storyboard_sec = UIStoryboard(name: "Second", bundle: nil)
    let viewController = storyboard_first.instantiateViewControllerWithIdentifier("collect_science")
    viewController.title = "collect_science"

    let viewController2 = storyboard_sec.instantiateViewControllerWithIdentifier("vc_MyDiy2")
    viewController2.title = "DIY"



    let viewControllers = [viewController, viewController2]//

    let options = PagingMenuOptions()
    options.defaultPage = 0
    options.selectedTextColor = UIColor.whiteColor()
    options.menuItemMargin = 5
    options.menuHeight = 60
    options.menuItemMode = PagingMenuOptions.MenuItemMode.None
    options.menuDisplayMode = PagingMenuOptions.MenuDisplayMode.SegmentedControl

    let pagingMenuController = PagingMenuController(viewControllers: viewControllers, options: options)
    pagingMenuController.view.frame.origin.y += 64
    pagingMenuController.view.frame.size.height -= 64

    addChildViewController(pagingMenuController)
    view.addSubview(pagingMenuController.view)
    pagingMenuController.didMoveToParentViewController(self)

}

SuYungCheng avatar Mar 11 '16 04:03 SuYungCheng

I have the same issue, Do you know how can we fix it?

GuillermoIHS avatar Apr 11 '16 08:04 GuillermoIHS

yes,because of the Constraints , It makes the view out of the range.

SuYungCheng avatar Apr 11 '16 13:04 SuYungCheng

It looks like it's an constraints issue. I'll look into this issue and let you know what's wrong.

kitasuke avatar Apr 13 '16 10:04 kitasuke

Thanks!

SuYungCheng avatar Apr 13 '16 13:04 SuYungCheng

any update for this issue?

wmanriques avatar Jul 21 '16 20:07 wmanriques

#261 might be same issue

kitasuke avatar Oct 10 '16 05:10 kitasuke