Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Don't assume 0 margin for panelContentView top and bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdh committed Feb 23, 2017
1 parent f1f4cba commit ebd4418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PanelKit/PanelManager/PanelManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ extension PanelManager {

// Recreate them

panelContentView.topAnchor.constraint(equalTo: panelContentWrapperView.topAnchor).isActive = true
panelContentView.bottomAnchor.constraint(equalTo: panelContentWrapperView.bottomAnchor).isActive = true
panelContentView.topAnchor.constraint(equalTo: panelContentWrapperView.topAnchor, constant: frame.origin.y).isActive = true
panelContentView.bottomAnchor.constraint(equalTo: panelContentWrapperView.bottomAnchor, constant: panelContentWrapperView.bounds.height - frame.maxY).isActive = true

panelContentView.leadingAnchor.constraint(equalTo: panelContentWrapperView.leadingAnchor, constant: frame.origin.x).isActive = true

Expand Down

0 comments on commit ebd4418

Please sign in to comment.