mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Merge pull request #306 from RussTedrake/button_width
Fix width on FunctionController property_name
This commit is contained in:
commit
884c71eaa5
@ -58,6 +58,11 @@
|
|||||||
var f3 = f2.addFolder('Nested Folder');
|
var f3 = f2.addFolder('Nested Folder');
|
||||||
f3.add(obj, 'growthSpeed');
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -172,6 +172,11 @@ $button-height: 20px;
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Function controllers can use the entire width */
|
||||||
|
.cr.function .property-name {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
/** Controller-half (right) */
|
/** Controller-half (right) */
|
||||||
.c {
|
.c {
|
||||||
float: left;
|
float: left;
|
||||||
|
Loading…
Reference in New Issue
Block a user