mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
Rename arrowTop and arrowBottom css classes to blocklyArrowTop and blocklyArrowBottom (#3548)
This commit is contained in:
@@ -216,14 +216,14 @@ Blockly.Css.CONTENT = [
|
||||
'cursor: pointer;',
|
||||
'}',
|
||||
|
||||
'.arrowTop {',
|
||||
'.blocklyArrowTop {',
|
||||
'border-top: 1px solid;',
|
||||
'border-left: 1px solid;',
|
||||
'border-top-left-radius: 4px;',
|
||||
'border-color: inherit;',
|
||||
'}',
|
||||
|
||||
'.arrowBottom {',
|
||||
'.blocklyArrowBottom {',
|
||||
'border-bottom: 1px solid;',
|
||||
'border-right: 1px solid;',
|
||||
'border-bottom-right-radius: 4px;',
|
||||
|
||||
@@ -684,7 +684,8 @@ Blockly.DropDownDiv.positionInternal_ = function(
|
||||
Blockly.DropDownDiv.arrow_.style.transform = 'translate(' +
|
||||
metrics.arrowX + 'px,' + metrics.arrowY + 'px) rotate(45deg)';
|
||||
Blockly.DropDownDiv.arrow_.setAttribute('class', metrics.arrowAtTop ?
|
||||
'blocklyDropDownArrow arrowTop' : 'blocklyDropDownArrow arrowBottom');
|
||||
'blocklyDropDownArrow blocklyArrowTop' :
|
||||
'blocklyDropDownArrow blocklyArrowBottom');
|
||||
} else {
|
||||
Blockly.DropDownDiv.arrow_.style.display = 'none';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user