-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #6809 add tab-pane wrapper in notebook * #6809 keep styles in css file not in Widgets * #6809 DOMUtils helper * #6809 Remove style from Widget, notify parent when size changed * #6809 remove style from widget * #6809 SizeChangedMessage * #6809 update size when needed * #6809 OptionsWidget with tabs * #6809 import styles from css, remove styles from widget, use OptionsWidget with tabs * #6809 cleanup css * #6809 CS * #6809 fix lab * #6809 fix * #6809 remove duplicated "JVM Options" and "UI Options" * #6855 adjust layout in our options tab (#6890) * #6855 adjust banner layout * #6809 fix truncated labels on tabs * #6809 hide sync widget on tab change
- Loading branch information
1 parent
53fad60
commit cc152cd
Showing
15 changed files
with
475 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2017 TWO SIGMA OPEN SOURCE, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import * as $ from "jquery"; | ||
|
||
export default class DOMUtils { | ||
|
||
public static getRealElementHeight(el: HTMLElement): number { | ||
let copyEl = $(el).clone() | ||
.attr("id", null) | ||
.css({ | ||
visibility:"hidden", | ||
display:"block", | ||
position:"absolute" | ||
}); | ||
$('body').append(copyEl); | ||
let h = copyEl.outerHeight(); | ||
copyEl.remove(); | ||
return h; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.