Sam El-Husseini
c1ff28fcd2
Rename arrowTop and arrowBottom css classes to blocklyArrowTop and blocklyArrowBottom ( #3548 )
2020-01-06 16:09:23 -08:00
Sam El-Husseini
f06d7b3cfd
Fix scrolled text input widgetdiv positioning. ( #3533 )
...
* Fix scrolled text input widgetdiv positioning.
* Fix dropdown div bounds element when scrolled.
2020-01-02 17:19:32 -08:00
Sam El-Husseini
9fc995425a
Support adjusting dropdowndiv default colours through CSS ( #3469 )
...
* Support setting the dropdown theme default colours through CSS. Update dark theme.
2019-11-25 14:18:28 -08:00
Sam El-Husseini
329a21c572
Add theme and renderer classnames onto the widget and dropdown div. ( #3456 )
...
* Add theme and renderer classnames onto the widget and dropdown div.
2019-11-20 11:07:39 -08:00
Sam El-Husseini
cff8e19699
Return focus to the workspace after hiding a widget or dropdown div ( #3447 )
2019-11-15 10:57:29 -08:00
Sam El-Husseini
8eba82b906
Fix 4 misc warnings ( #3283 )
2019-10-17 16:52:52 -05:00
Sam El-Husseini
3c2c4677df
Fix 55 warnings related to flyouts. ( #3211 )
...
* Fix 55 warnings related to flyouts.
2019-10-16 12:13:37 -05:00
Neil Fraser
01b6992efd
Normalize to one spelling of color/colour.
2019-10-16 09:46:47 -07:00
Sam El-Husseini
267deceb82
Dropdowndiv positioning ( #3212 )
...
* Fix positioning of the dropdown div
2019-10-16 10:20:40 -05:00
Sam El-Husseini
3368a9f713
Revert calling onHide before the animation is complete to avoid double click issues. ( #3202 )
2019-10-09 11:16:16 -07:00
Sam El-Husseini
1d113b5069
Add support for setting the direction in RTL. ( #3192 )
2019-10-07 17:28:18 -07:00
Sam El-Husseini
fba98fca5b
Move the dropdown field into the dropdown div. ( #3122 )
...
* Move the dropdown field into the dropdown div.
2019-10-03 14:35:28 -07:00
Neil Fraser
b46a4fe286
Bring our license format up to date ( #3127 )
...
* Google changed from an Inc to an LLC.
This happened back in 2017 but we didn’t notice. Officially we should update files from Inc to LLC when they are changed as part of regular edits, but this is a nightmare to remember for the next decade.
* Remove project description/titles from licenses
This is no longer part of Google’s header requirements. Our existing descriptions were useless (“Visual Blocks Editor”) or grossly obselete (“Visual Blocks Language”).
* License no longer requires URL.
* Fix license regexps.
2019-10-02 14:46:56 -07:00
Sam El-Husseini
f22603f32a
Call onHide before clearing content ( #3131 )
2019-10-02 11:41:34 -07:00
Monica Kozbial
40e0d55187
Removing obsolete TODO comment. ( #3104 )
2019-09-27 11:12:11 -07:00
Neil Fraser
a03660243e
Code cleanup, drop some CSS.
...
Random improvements to require statements.
Removal of some obviously dead CSS.
.blocklyDropDownDiv no longer supresses text selection (see comment in PR).
This PR drops the compiled size by 4 KB, which is larger than I was expecting.
2019-09-25 10:34:34 -07:00
Neil Fraser
096959fde9
Cleanup of last fortnight’s commits. ( #2865 )
...
No functional changes.
2019-08-19 14:07:48 -07:00
Sam El-Husseini
8e4d904095
Listen to focus events on children and add a focused class in the dropdown ( #2848 )
2019-08-16 16:29:34 -07:00
Sam El-Husseini
f34f2beac7
Remove all calls to goog.style ( #2781 )
...
* Remove dependency on goog.style
2019-08-06 14:54:13 -07:00
Neil Fraser
45e5fb4157
More JSDoc and lint corrections
2019-07-30 17:00:40 -07:00
Beka Westberg
c43e001634
Fixed DropDownDiv Rendering On Small Workspaces ( #2641 )
...
* Fixed dropdown div rendering when the workspace is too small.
2019-07-30 13:29:52 -07:00
Sam El-Husseini
c1b49a1da7
Fix some jsdoc types ( #2701 )
...
* Fix JSDoc regarding type inconsistencies. Make image field src required and update image field tests.
2019-07-25 12:24:36 -07:00
Beka Westberg
392119680e
Fixed misc PR comments.
2019-06-11 13:32:10 -07:00
Beka Westberg
8ee266ea65
Fixed dropdowndiv not animating correctly after hideChaff. Extracted dual functionality of positionInternal_ and moved it to hideWithoutAnimation.
2019-06-11 13:32:10 -07:00
Beka Westberg
7af5c5147a
Fixed dropdown div not fading in correctly.
2019-06-11 13:32:10 -07:00
Neil Fraser
d1a29739d8
Move utilities into own directory.
...
TODO: There are more functions which may be migrated into dom and string.
2019-06-07 10:32:57 -07:00
Beka Westberg
73ff710a4d
Added getSourceBlock function to field. ( #2508 )
2019-05-29 12:50:00 -07:00
Neil Fraser
32631577a4
Defenestration
2019-05-17 15:04:39 -07:00
Neil Fraser
49954e0cec
Remove calls to goog.dom.getViewportSize
...
document.documentElement.clientWidth/clientHeight seems to work everywhere Blockly works. Closure’s functions are mind-numbingly complex due to IE5, old WebKit, Opera 8, and others.
2019-05-17 15:04:39 -07:00
Neil Fraser
f118d33855
Corrections to JSDoc comments
2019-03-29 15:24:37 -07:00
Neil Fraser
e9de083361
Fix @return JSDocs.
2019-03-29 15:24:37 -07:00
Rachel Fenichel
0b1bd78674
Clarify some dropdown rendering code
2019-02-28 15:11:57 -08:00
Rachel Fenichel
2c624c5144
Use dropdowndiv for field colour but not field dropdown
2019-02-26 11:03:28 -08:00
Rachel Fenichel
c426aad387
Use dropdown div for dropdowns
2019-02-21 13:41:45 -08:00
Rachel Fenichel
763a06a7ac
Use dropdown div for colour field
2019-02-21 13:41:45 -08:00
Rachel Fenichel
91408a3238
Add dropdowndiv file
2019-02-21 13:41:45 -08:00