fix: added fit-content for width and height.
fixed button and label centering for tkinter widgets
This commit is contained in:
@@ -50,4 +50,12 @@ export function removeKeyFromObject(path, _object) {
|
||||
delete nestedObject[lastKey]
|
||||
|
||||
return newAttrs
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function isNumeric(str) {
|
||||
if (typeof str != "string") return false // we only process strings!
|
||||
return !isNaN(str) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
|
||||
!isNaN(parseFloat(str)) // ...and ensure strings of whitespace fail
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user