Fixing drag and drop file upload issue on windows (#19809)
Folder upload is not supported by most of the browsers and can cause
StreamVariable methods not fire on some configurations.
This fix tries to detect and prevent uploading of folders.
Change-Id: Ib6357ddaeda5549065ab8ef5f682f12ad5968bce
Fixing ComboBox page flip on trackpad scroll (#19704)
Trackpad scroll gesture produces a large amount of wheel events causing
the same amount of flips on ComboBox. This fix tries to control page flips
in a way that it would feel more natural to use it.
Change-Id: I3ed206a5abe8c3ba8c06a5998f788468157663f1
- new height more for undefined height that works like in Table and
resizes the grid when details row opens or closes
Change-Id: I2dc817140308093865be30de72edcd6494e4a44b
Fixing messed up column in Grid after hide, resize and show (#19826)
When resizing a column in Grid, widths of all columns without
a fixed width (-1) are set to their actual width. This is 0 when
the column is hidden.
Change-Id: If50e71c748cd0674f44d9e51777518eb48b42c5c
The legacy LoginForm is substituted with the new one which is compatible
in API.
The patch contains modified code from the addon
https://vaadin.com/directory#addon/loginform
Change-Id: I2178291c97c2f66840f832a0bf932271534beb49
Added API setPopupWidth(String) to ComboBox. The suggestion pop-up now
has three different width modes:
1. Legacy "null"-mode: width is determined by the longest item
caption for each page. This looks & feels like the old implementation.
This is the default mode
2. Relative to the ComboBox. e.g. 100%
3. fixed width using any CSS definition
Change-Id: Id60a6996ee82726196b84d50c2d0d18a6cfb5ebf
The subwindows tooltip is now also shown in header and footer of the
subwindow. Added also tests for the feature.
Change-Id: I933dad9e8530ce20b930fe22caf9e79a3ad3e3d2
Take body scrolling into account when deciding combobox popup position (#19162)
For standard standalone Vaadin apps, the body scroll is not scrollable. For
these this change should have no effect.
In embedded cases and when running as portlet, the body is scrollable. For
these cases, the popup is now correctly shown below the combo box when
there is space.
Change-Id: Ia183f4f2988e6593634f6e9735fd58abbd4a1da1
Avoid repainting when computed size was lesser than 1px,
causing performance issues trying to render as many rows as
pixels in the view port.
When default height is provided programatically, or it has been
already calculated it should not be recomputed anymore.
Change-Id: I842fc152e35a28b517365415d3db2ea0a7450b07
Simpler and safer DeferredDomSorter implementation.
When embeding the grid in other frameworks like angular2, DomSorter
behaves wrong because polyfills change animation-frame, this
is the case of zone.js used by angular. It makes that canceling
animation callback does not work producing re-orderings and
re-flows continously.
Change-Id: Ie1a2d3cb824050787c5720669bb53539efdfe72a
Calling scrollToRowAndSpacer some times was not finishing
and other times it has a excesive delay. This is due to
calls pilled in gwt scheduler. It can be reproduced
running vaadin-grid scrolling tests
Change-Id: Ic5a6bd463a91f96984c8b4443f6da1cb7a17583d
- When scroll reaches borders, we have to pass the control to
device to perform default behavior, moving scroll in parent elements.
- Stop animation sooner when reaching the edge.
- Avoid scrolling when wheeling or touching Headers/Footers
- Adding styles to body when scrolling or when it is a touch device.
Change-Id: I9753d92aa803c6b65cc32bab4dd8f89479722a24
Focus click element inside a drag'n'drop wrapper (#14826)
Focus inside a drag'n'drop wrapper does not work out of the box as mousedown is
cancelled to avoid text selection when starting a dnd operation.
This change explicitly calls focus on the element at the location which was clicked.
Input elements will now be able to gain focus but e.g. clicking to move the caret
inside a text area won't work as mousedown is cancelled.
Change-Id: I89e046ddb0b1044bc6a2f11fda4edbe5fda25743
* UIDL responses only include server side timing information when not
in production mode.
* Update documentation accordingly.
Change-Id: I961d1fdc96b3d04f22254fcd13a5412f17118b42