marinofaggiana 4 年之前
父節點
當前提交
8e2f8d451b
共有 1 個文件被更改,包括 5 次插入0 次删除
  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)