Merge pull request #306 from RussTedrake/button_width

Fix width on FunctionController property_name
This commit is contained in:
mrdoob 2022-02-17 21:34:31 -05:00 committed by GitHub
commit 884c71eaa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -58,6 +58,11 @@
var f3 = f2.addFolder('Nested Folder');
f3.add(obj, 'growthSpeed');
obj['Button with a long description'] = function () {
console.log('Button with a long description pressed');
};
gui.add(obj, 'Button with a long description');
</script>
</body>
</html>

View File

@ -172,6 +172,11 @@ $button-height: 20px;
text-overflow: ellipsis;
}
/** Function controllers can use the entire width */
.cr.function .property-name {
width: 100%;
}
/** Controller-half (right) */
.c {
float: left;