marinofaggiana 4 years ago
parent
commit
8e2f8d451b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      iOSClient/Main/Section/NCSectionHeaderFooter.swift

+ 5 - 0
iOSClient/Main/Section/NCSectionHeaderFooter.swift

@@ -68,6 +68,11 @@ class NCSectionHeaderMenu: UICollectionReusableView, UIGestureRecognizerDelegate
         changeTheming()
     }
     
+    override func layoutSublayers(of layer: CALayer) {
+        super.layoutSublayers(of: layer)
+        gradient.frame = viewRichWorkspace.bounds
+    }
+    
     @objc func changeTheming() {
         if textViewColor != NCBrandColor.sharedInstance.textView {
             markdownParser = MarkdownParser(font: UIFont.systemFont(ofSize: 15), color: NCBrandColor.sharedInstance.textView)