Skip to content

Commit ebd5c65

Browse files
committed
changing the order of the code
1 parent a1874cd commit ebd5c65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/contrib/hover/browser/contentHover.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,10 @@ export class ResizableHoverWidget extends MultiplePersistedSizeResizableContentW
772772
}
773773

774774
private _setPersistedHoverDimensionsOrRenderNormally(): void {
775-
const persistedSize = this.findPersistedSize();
776-
// Suppose a persisted size is defined
777775
let width: number | string;
778776
let height: number | string;
777+
const persistedSize = this.findPersistedSize();
778+
// Suppose a persisted size is defined
779779
if (persistedSize) {
780780
width = Math.min(this._findAvailableSpaceHorizontally() ?? Infinity, persistedSize.width - 2 * SASH_WIDTH_MINUS_BORDER);
781781
height = Math.min(this._findAvailableSpaceVertically() ?? Infinity, persistedSize.height - 2 * SASH_WIDTH_MINUS_BORDER);

0 commit comments

Comments
 (0)