Commit Graph

3850 Commits

Author SHA1 Message Date
Neil Fraser 2b345bbcb6 Fix centering of fields. 2015-09-17 17:12:18 -07:00
Neil Fraser 0061482977 Disallow output coupled with next statement. 2015-09-17 16:47:13 -07:00
Neil Fraser 6f2f3914f6 Double rendering speeds by adding a cache to prevent repeated calls to getComputedTextLength. 2015-09-15 16:20:13 -07:00
Neil Fraser 76697301e7 Fix IE's failure to scroll grid (issue 173)
IE does not realize that when a pattern changes, objects painted with
said pattern need to be rerendered.
2015-09-14 16:17:36 -07:00
Neil Fraser 3f8e586fe8 Use prototypes for primitive properties. 2015-09-12 19:31:22 -07:00
Neil Fraser 1b43699ae3 Use prototypes for Connection properties. 2015-09-12 18:44:14 -07:00
Neil Fraser 58db773526 Move trashcan split by 1px.
Firefox on Windows is off by a pixel.
2015-09-11 21:50:44 -07:00
Neil Fraser db940ca493 Fix reversed height and width on image fields. 2015-09-07 18:52:07 -07:00
Neil Fraser 8660bbe6e9 Make XML parser less fragile.
This allows fields and inputs to be deprecated.
2015-09-03 08:21:31 -07:00
Neil Fraser e4c902a105 Fix RTL alignment of new blocks when zoomed. 2015-09-02 00:09:49 +01:00
Neil Fraser f9d47bd39e Lay out trashcan and zoom controls more flexibly. 2015-09-01 22:44:33 +01:00
Neil Fraser 7568015c8c Scale the flyout as the workspace zooms. 2015-09-01 20:00:13 +01:00
Neil Fraser 8f73c6b042 Clean getSvgXY_.
No functional change.
2015-09-01 12:22:50 +01:00
Neil Fraser ca9ee114bc Remove 'id' from XML unless realtime is enabled. 2015-08-28 09:53:03 +01:00
Neil Fraser 8aa8bbb53e Fix placement of blocks on zoomed flyouts. 2015-08-27 16:46:45 +01:00
Neil Fraser d1d89abca8 Fix block locations on flyouts.
Output tabs are negative coordinates.
2015-08-27 15:08:26 +01:00
Neil Fraser 8540118fe0 Add optional class to FieldLabel. 2015-08-26 14:27:30 +01:00
Neil Fraser f81a5bd11a Expand regex to handle IE's scientific notation. 2015-08-26 14:08:03 +01:00
Neil Fraser ffe49a7020 Remove needless use of .call() 2015-08-25 15:09:55 +01:00
Markus Bordihn d555121a1c Update utils.js
There is no global "getSelection()" function, see:
https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection
2015-08-25 15:39:09 +02:00
Neil Fraser 218fdc667d Fix duplicate procedure naming.
https://groups.google.com/forum/#!topic/blockly/2q0pleoMIco
2015-08-25 14:11:07 +01:00
Neil Fraser 20820b5861 Fix drag events. 2015-08-21 19:37:57 -07:00
Neil Fraser d4a8012b72 Routine recompile. 2015-08-21 14:54:11 -07:00
Neil Fraser 739918b870 Merge pull request #162 from skcamp/fix-issue-161-pinch-gesture-error
fix: https://github.com/google/blockly/issues/161
2015-08-21 14:39:15 -07:00
Neil Fraser 2b18078cb6 Merge pull request #165 from carlosperate/zoom_ie
Revert DOM injection order of the zoom control images.
2015-08-21 14:35:12 -07:00
Neil Fraser f601bdc3c7 Fix FF editor location by a pixel. 2015-08-21 14:13:07 -07:00
carlosperate 466115d52b Revert DOM injection order of the zoom control images. 2015-08-21 20:51:35 +01:00
Neil Fraser fe12aeee93 Merge pull request #164 from carlosperate/getScaledBBox_
Update getScaledBBox_ to return new object to fix issue in IE.
2015-08-21 12:39:02 -07:00
carlosperate 17be3219ee Update FieldTextInput to not edit possible read-only attributes.
The SVGRect returned from getBBox can be have its attributes as read-only.
2015-08-21 19:20:00 +01:00
carlosperate 055c11155d Update getScaledBBox_ to return new object to fix issue in IE. 2015-08-21 18:51:25 +01:00
carlosperate a43c426986 Remove additional height to the FieldImage size. 2015-08-21 17:25:05 +01:00
Neil Fraser 53f5424801 Skc memory leaks (PR #159) 2015-08-20 15:46:44 -07:00
Winston 575b712462 fix: https://github.com/google/blockly/issues/161
On iOS, if I use a pinch gesture in the workspace, these errors appear in the console:

Error: Invalid value for <rect> attribute x="NaN"
2015-08-20 15:26:56 -07:00
Neil Fraser e8f1de3bdf Fix bottom-right workspace metrics when not at 100% zoom. 2015-08-20 14:09:14 -07:00
Neil Fraser 84838a67f3 Don't delete connected child blocks. 2015-08-20 12:07:48 -07:00
Neil Fraser 96d5987db1 Fix Audio test in IE (issue 272) and fix error when deleting block with warning. 2015-08-19 18:42:35 -07:00
Neil Fraser f3ea66a796 Dragging on an icon should not pop open a bubble.
Issue #145.
2015-08-19 18:25:26 -07:00
Neil Fraser 058760e30d Merge pull request #158 from carlosperate/ie_comment_fix
Rename Warning getAllText function for Comment object compatibility.
2015-08-19 17:36:03 -07:00
Neil Fraser 5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
Neil Fraser 0478d308a6 Trivial cleanup. 2015-08-18 11:34:22 -07:00
Neil Fraser 6d8bae4836 Fix 'this' in field change handler calls.
Caught by toebes.
2015-08-17 23:20:29 -07:00
carlosperate d773adb7b3 Rename Warning getAllText function for Comment object compatibility. 2015-08-17 15:23:08 +01:00
Allison Lamm 02fa8cb605 more type annotation updates 2015-08-10 14:34:42 -05:00
Allison Lamm 6070b9473d Update type annotation for Blockly cursor 2015-08-10 14:17:11 -05:00
Allison Lamm cca88beb30 adding type annotation to field text input 2015-08-10 13:46:16 -05:00
Neil Fraser 3ed9e09355 Refresh XML in generator unit tests. 2015-08-07 10:04:07 -07:00
Neil Fraser bd144f14ea Fix tooltip location when page is scrolled.
Also of note, Closure Compiler is no longer preserving licences.
2015-08-06 11:12:41 -07:00
Neil Fraser 877b5d3fa0 Fix generating null blocks (issue 142). 2015-07-30 08:31:13 -07:00
Troy McKinnon 37a3c74aea add another type annotation 2015-07-27 14:18:43 -05:00
Neil Fraser 75582660a3 Merge pull request #131 from carlosperate/menu_height
Contain the height of the field dropdown to the window viewport height.
2015-07-23 14:39:55 -07:00