mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Fixed buttons being rendered as labels if they come after a label. (#2410)
This commit is contained in:
@@ -480,10 +480,8 @@ Blockly.Flyout.prototype.show = function(xmlList) {
|
||||
}
|
||||
break;
|
||||
case 'LABEL':
|
||||
// Labels behave the same as buttons, but are styled differently.
|
||||
var isLabel = true;
|
||||
// Falls through.
|
||||
case 'BUTTON':
|
||||
var isLabel = xml.tagName.toUpperCase() == 'LABEL';
|
||||
var curButton = new Blockly.FlyoutButton(this.workspace_,
|
||||
this.targetWorkspace_, xml, isLabel);
|
||||
contents.push({type: 'button', button: curButton});
|
||||
|
||||
Reference in New Issue
Block a user