Artur Signell [Sat, 24 Sep 2016 07:20:21 +0000 (10:20 +0300)]
Add tests for widgetset compilation in different modes
* Using the default widget set
* Using no add-ons but a custom widget set
* Using add-ons with a defined widget set
* Using add-ons with no defined widget set
* Using directories with special characters (space)
Artur Signell [Fri, 23 Sep 2016 19:08:39 +0000 (22:08 +0300)]
Fix widget set builder to create widget set in correct location (#20320)
The fix for #20285 generates URLs so that the end in a slash, where the old
version generated URLs without the trailing slash. The trailing slash was not
taken into account by the code which updates a widget set.
Artur Signell [Thu, 15 Sep 2016 07:43:27 +0000 (10:43 +0300)]
Use widget set specified by init parameter (#20276)
1. If a UI has @Widgetset, use that
2. If a "widgetset" init parameter has been specified, use that
3. If there is an AppWidgetset, use that
4. Use DefaultWidgetSet
This changes the default value of the @VaadinServletConfiguration widgetset
parameter to "", to avoid always setting the "widgetset" init parameter when
@VaadinServletConfiguration is used.
Artur Signell [Sun, 18 Sep 2016 20:00:58 +0000 (23:00 +0300)]
Use requestAnimationFrame when scrolling in Grid (#20294)
Chrome no longer (since version 5x) always fire deferred commands
immediately during scrolling but can delay them with several hundred
milliseconds, making grid really unresponsive.
So far, nobody has been able to provide a reliable test case.
Artur Signell [Sun, 18 Sep 2016 14:35:34 +0000 (17:35 +0300)]
Make initially disabled grid work when enabled (#20240)
Adds API to allow grid to ask its data source if it is waiting for data.
The previous tracking inside grid was not always correct as it relied
on dataAvailable being called.
Artur Signell [Thu, 15 Sep 2016 07:43:27 +0000 (10:43 +0300)]
Use widget set specified by init parameter (#20276)
1. If a UI has @Widgetset, use that
2. If a "widgetset" init parameter has been specified, use that
3. If there is an AppWidgetset, use that
4. Use DefaultWidgetSet
Artur Signell [Thu, 8 Sep 2016 19:22:53 +0000 (22:22 +0300)]
Ensure Firefox always updates the grid scrollbar (#19802)
When the scrollbar is scrolled a bit down and the number of items
in the grid is reduced so that no scrollbar is needed anymore, it seems
that Firefox refuses to send a scroll event even though the scroll position
is updated before the scrollbar is hidden.
Artur Signell [Fri, 2 Sep 2016 05:19:35 +0000 (08:19 +0300)]
Update DOM and update escalator row count in the correct order (#19442)
If you show a column when Grid has no horizontal scrollbar, and is scrolled
all the way down, and the number of visible rows is slightly more than N then
Escalator will adjust the row count when the scrollbar is shown so that N-1
rows are visible. During this operation, the DOM must be updated for the new
column.
Patrik Lindström [Thu, 23 Jun 2016 13:00:52 +0000 (16:00 +0300)]
Discard for DateField when the data source contains null (#8069)
Earlier discard did not work (#8069) if the data source
contained null and the user entered an invalid value for date fields.
The discard logic has been changed such that the error indicators and
internal state of the date field is cleared also if the value entered by
the user is invalid and the data source is null.
attach() updates the value from the data source in the same way as
discard. The old logic in attach is retained.
Artur Signell [Mon, 29 Aug 2016 19:11:23 +0000 (22:11 +0300)]
Fix animation end listeners so they are always removed (#17903)
Fixes ComboBox suggestion popup so that it will not automatically
close when clicking the popup button, if the user happened to
double click on the button earlier.
Matti Tahvonen [Mon, 22 Aug 2016 15:30:59 +0000 (18:30 +0300)]
Added a fallback value for useragent (#20172)
Without this change, some browsers, like GoogleBot, don't properly render the page.
Instead of weird JS exception (and hit to server with 404) we should at least try
to render the app with all browser. As webikit/chromium based browsers are
nowadays most popular, falling back to "safari" permutation.
Henri Sara [Fri, 12 Aug 2016 06:46:30 +0000 (09:46 +0300)]
Remove unused GWT dependencies
As vaadin-client-compiler dependens on gwt-dev, the gwt-dev dependencies
are either bundled in gwt-dev or specified as transitive dependencies
for it, so there is no need to specify them again for
vaadin-client-compiler
adam [Mon, 8 Aug 2016 12:25:10 +0000 (15:25 +0300)]
Fix Grid height calculation when HeightMode.ROW (#20104, #20074)
When Grid is inside of a Tab (Tabsheet or Accordion) and
height mode is set to HeightMode.ROW, layout happens
before row height is known. To fix that, an event is fired
and a handler starts a layout after everything is calculated.
adam [Mon, 18 Jul 2016 13:21:52 +0000 (16:21 +0300)]
Fixing TabSheet scrolling within SplitPanel (#20052)
This patch fixes an issue with disappearing tabs in a TabSheet placed in a
SplitPanel.
Scrolling a tab into view needs to be done after layout has happened. Otherwise
the available width for TabSheet is unknown and causes unexpected behaviour.
Fixed the compare filter to handle subclasses (#17169)
Earlier the comparision worked only if the item value was a subclass of
the value in comparator, but not in the other way around. Now the
compairision works if the one is a subclass of the other and both
implements Comparable.
Henri Sara [Wed, 13 Jul 2016 12:37:13 +0000 (15:37 +0300)]
Fix and optimize TabsheetScrollingTest
The test was based on the assumption that only the visible tabs are
in the DOM of the tab bar. This assumption was no longer true.
Furthermore, the test iterated over all tabs which led to performance
issues especially on IE8.
adam [Thu, 30 Jun 2016 09:48:06 +0000 (12:48 +0300)]
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.
Artur Signell [Mon, 11 Jul 2016 13:05:30 +0000 (16:05 +0300)]
Support static inner classes when reading/writing declarative files (#20038)
Uses outer class name as package name for static inner classes. When reading,
there is no way to know that the class is an inner class so only when creating
a class fails, an inner class is tried as a backup.
Henri Sara [Wed, 13 Jul 2016 06:37:48 +0000 (09:37 +0300)]
Disable tooltip tests for Firefox.
Since the fix for #13370 which causes tooltips to react to mouseOut,
TB tests for tooltips fail on Firefox because of an extraneous
mouseOut event from FirefoxDriver.
Matti Tahvonen [Fri, 1 Jul 2016 14:43:01 +0000 (17:43 +0300)]
Updated README
Updated readme file to use Vaadin Framework instead of plain Vaadin, as Vaadin is a
company name nowadays. Also updated some links, formatting and order of the
instructions. "maven -> mvn" in CLI instructions. Removed obsolete Maven
instructions about versioning.
adam [Thu, 16 Jun 2016 07:59:40 +0000 (10:59 +0300)]
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.
Marko Gronroos [Fri, 20 May 2016 11:44:42 +0000 (14:44 +0300)]
Scaled images for print edition and fixed errors up to the beginning of layouts chapter (#19835). Also major revision of Tree, CustomField, and layouts overview.
Ingo Kegel [Tue, 28 Oct 2014 10:45:19 +0000 (13:45 +0300)]
New login form (#8171)
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