File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Sources/CodeEditTextView/ItemBox Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ extension ItemBoxWindowController {
147147 scrollView. bottomAnchor. constraint ( equalTo: contentView. bottomAnchor)
148148 ] )
149149 }
150-
150+
151151 /// Updates the item box window's height based on the number of items.
152152 /// If there are no items, the default label will be displayed instead.
153153 private func updateItemBoxWindowAndContents( ) {
@@ -185,7 +185,6 @@ extension ItemBoxWindowController {
185185 window. minSize = NSSize ( width: Self . DEFAULT_SIZE. width, height: newHeight)
186186 }
187187
188-
189188 private func configureNoItemsLabel( ) {
190189 window? . contentView? . addSubview ( noItemsLabel)
191190
@@ -194,7 +193,7 @@ extension ItemBoxWindowController {
194193 noItemsLabel. centerYAnchor. constraint ( equalTo: window!. contentView!. centerYAnchor)
195194 ] )
196195 }
197-
196+
198197 /// Calculate the window height for a given number of rows.
199198 private static func rowsToWindowHeight( for numberOfRows: CGFloat ) -> CGFloat {
200199 let wholeRows = floor ( numberOfRows)
You can’t perform that action at this time.
0 commit comments