Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added height:100%. to .mgwt-ScrollPanel css class. #66

Open
wants to merge 87 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6509f1a
[maven-release-plugin] prepare release 2.0.0-rc2
dankurka Aug 30, 2014
13d22a9
[maven-release-plugin] prepare for next development iteration
dankurka Aug 30, 2014
68362f7
Add more editor support
kfa Aug 31, 2014
e3df001
Merge pull request #198 from kfa/editor
dankurka Aug 31, 2014
a64ba6d
[maven-release-plugin] prepare release 2.0.0
dankurka Sep 1, 2014
70bcba3
Merge branch 'master' of github.com:mgwt/mgwt
dankurka Sep 1, 2014
7e46ed4
[maven-release-plugin] rollback the release of 2.0.0
dankurka Sep 1, 2014
f6f11ea
[maven-release-plugin] prepare release 2.0.0
dankurka Sep 1, 2014
933f1c8
[maven-release-plugin] prepare for next development iteration
dankurka Sep 1, 2014
4b207e2
Fixed spelling error in the word "appearance".
Sep 2, 2014
782a3bc
Merge pull request #199 from volgin/master
dankurka Sep 2, 2014
30c78c0
Added "space-around" option to Justification. I see no reason to leave
Sep 4, 2014
eaf7215
Merge pull request #202 from volgin/master
dankurka Sep 4, 2014
5075c0a
Fixed spelling error.
Sep 6, 2014
f1ddcce
Merge pull request #203 from volgin/master
dankurka Sep 7, 2014
87b6344
Fixed CSS typos in FlexPropertyHelper.
kfa Sep 17, 2014
ca2b6ed
Merge pull request #206 from kfa/fix_css_property_typo
dankurka Sep 17, 2014
772855d
Added missing ensureInjected calls.
kfa Sep 19, 2014
daaad59
Merge pull request #207 from kfa/add_missing_ensureInjected
kfa Sep 19, 2014
3fd1752
Changed mgwt to work with GWT 2.7
kfa Sep 30, 2014
8189238
Merge pull request #210 from kfa/update_mgwt_to_run_with_gwt2.7
dankurka Sep 30, 2014
0dea28a
Remove background image gradient. It's no longer used in iOS 7/8 theme.
waynedyck Oct 21, 2014
ee3e638
Correct spelling of appearance.
waynedyck Oct 22, 2014
791d238
Replaced flex-flow with flex-direction to avoid conflicts when
Oct 24, 2014
fa17fbf
Merge pull request #215 from volgin/master
kfa Oct 29, 2014
de4deab
Add HasText to the implemented interfaces of MValueBoxBase
ankon Oct 30, 2014
096c6a3
Merge pull request #216 from ankon/gwt27-hastext
dankurka Nov 4, 2014
5c773af
Added 3 digit hex support in ImageConverter
kfa Nov 9, 2014
c6a23d1
Merge pull request #221 from kfa/fix_three_digit_color_bug
dankurka Nov 9, 2014
f892ab8
Added update HeaderList header on scrolling.
kfa Nov 11, 2014
3decbd8
Merge pull request #222 from kfa/fix_groupinglist_moving_header
dankurka Nov 11, 2014
4213573
Merge pull request #214 from WSDOT/dev
kfa Nov 11, 2014
307640a
Fix MainResourceAppearance in platform themes
ingosch Nov 12, 2014
8533e98
Merge pull request #223 from ingosch/fix_platform_theme_MainResourceA…
kfa Nov 12, 2014
1ffe19f
Add UiChild to WidgetList.setHeader()
johnthad Nov 15, 2014
d364c1b
Merge pull request #229 from johnthad/master
kfa Nov 17, 2014
8aff744
Added method to set position of imagebutton text.
kfa Nov 12, 2014
894f450
Merge pull request #224 from kfa/add_text_position_to_imagebutton
dankurka Nov 17, 2014
d787a78
Added missing UiFactory method.
kfa Nov 18, 2014
b5a861f
Merge pull request #232 from kfa/fix_widgetlist_entry
dankurka Nov 18, 2014
56e03c2
Fixed wrong focus when tabbing into MTextBox in Chrome.
kfa Nov 19, 2014
c1defa1
Fix for black background gradient not being applied on Android.
waynedyck Jan 8, 2015
b47930b
Merge pull request #240 from WSDOT/dev
dankurka Feb 21, 2015
2ee0310
Merge pull request #233 from kfa/textbox_focus_bug_in_chrome
dankurka Feb 21, 2015
da1a2dd
Added a simple time input
grebesche Feb 24, 2015
fd34bf9
Merge pull request #248 from guillaume-rebesche/master
dankurka Mar 9, 2015
8893081
Added setFlex method to FlexPanel - the as in FlexSpacer. It makes it
Apr 5, 2015
8836742
setFlex method should only change flex-grow property.
Apr 7, 2015
a801a72
Fix the issue with big numbers in MDoubleBox
grebesche Apr 17, 2015
3a73b28
Merge pull request #253 from guillaume-rebesche/master
dankurka Apr 18, 2015
0368758
Merge pull request #252 from volgin/master
dankurka Apr 18, 2015
24aa01f
First draft of WP8/WP8.1 (desktop IE10, mobile IE10) support. Includes
Nov 28, 2014
2e42eb3
Amendments due to Daniel Kurka's review comments from the first quick
Jun 25, 2015
5c6f012
Merge pull request #256 from paulfrench/wp8support
dankurka Jul 14, 2015
e6e3ac5
Fix animated dialogue issue where you get 'Animation is already runni…
Jul 16, 2015
6bff1e7
Bug in translatePercent, you cannot specify 0% for the z translate3d
Jul 27, 2015
d3ab647
minor code formatting issue
Jul 27, 2015
3ba3ca5
re-format again, get rid of tabs, and use 2 spaces for each tab
Jul 27, 2015
cb8048c
Minor changes so TapRecognizer tests do not fail. Basically use the
Aug 14, 2015
94bf0a0
OSDetection.isDesktop() did not take into account Windows Phone 8/8.1
Aug 27, 2015
9bd9b5c
Added support for IE11 (using the unprefixed pointer event model) so no
Sep 7, 2015
a996aed
Added support to detect IE Edge at runtime. We let IE Edge run as the
Sep 16, 2015
664f1d5
Fixes look and feel of Search Box on IE10/11 and WP8.1. Does not fix for
Sep 17, 2015
e492b28
minor change to searchbox so works IEEdge
Sep 18, 2015
ed3aa7d
IE11 via a micro update have dropped support for the -ms prefix to flex
Nov 6, 2015
9ffad89
Removed usage of a GWT 2.7 feature so compiles fine against GWT 2.6.1 as
Dec 8, 2015
26a0258
removed touchStart.preventDefault since breaks native scrolling by
Jan 11, 2016
0221dc9
Merge pull request #262 from paulfrench/wp8-additional-fixes
Feb 10, 2016
ad23ecc
Merge pull request #261 from paulfrench/fix-animated-dialogue
Feb 10, 2016
938b1d3
Added MenuImageButton
robert4os Dec 8, 2015
6af556b
Merge pull request #269 from robert4os/add-menu-button
waynedyck Feb 17, 2016
53e0b91
Bug fix of CssUtil impl – wrong variable references in native methods
robert4os Dec 14, 2015
a4eb060
Merge pull request #268 from robert4os/cssutil-bug
waynedyck Feb 17, 2016
f2509fb
Add support for tap events on carousel indicators
Aug 27, 2014
34bbbf2
Merge pull request #191 from jberinger/carouselIndicatorTapHandler
waynedyck Feb 18, 2016
230fb13
Remove duplicate method setSupportCarouselIndicatorTap(boolean)
waynedyck Feb 23, 2016
f69ccf6
Merge pull request #277 from WSDOT/dev
waynedyck Feb 24, 2016
abddb09
Clear the ‘display’ CSS style property in OverlayMenu
srova Feb 14, 2016
c6444f9
Merge pull request #276 from srova/master
waynedyck Feb 24, 2016
966bbfe
Working date picker but not showing placeholder text
waynedyck Feb 27, 2016
e2d2a60
Merge branch 'mgwt-278-wd1'
waynedyck Feb 28, 2016
a3925a5
Added height:100%. to .mgwt-ScrollPanel css class. I think this is co…
waynerasmuss Mar 31, 2016
8c5af7e
Bug Fix of LongTapRecognizer (incomplete reset led to wrong move dete…
robert4os Dec 8, 2015
b7cb045
Merge pull request #267 from robert4os/bug_fix_longtap_recognizer
waynedyck Apr 30, 2016
5a57976
Support mouse and touch simultaneously if required. Make sure for ie
Apr 21, 2016
923d970
Merge pull request #283 from paulfrench/touch_and_mouse
Jun 13, 2016
6cdb7dc
Merge branch 'master' of https://github.com/mgwt/mgwt
waynerasmuss Aug 1, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ mgwt.iml
gwt-unitCache
war/
www-test/
/bin
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.googlecode.mgwt</groupId>
<artifactId>mgwt</artifactId>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>mgwt</name>

Expand Down
98 changes: 98 additions & 0 deletions src/main/java/com/google/gwt/user/client/impl/DOMImplIE10.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.user.client.impl;

import com.google.gwt.core.client.JavaScriptObject;


/**
* IE10 implementation of {@link com.google.gwt.user.client.impl.DOMImplStandard}.
*/
public class DOMImplIE10 extends DOMImplIE9 {

static {
DOMImplStandard.addCaptureEventDispatchers(getCaptureEventDispatchers());
DOMImplStandard.addBitlessEventDispatchers(getBitlessEventDispatchers());
capturePointerEvents();
}

/**
* Lets have the same behaviour as IOS where the target element continues to receive Pointer events
* even when the pointer has moved off the element up until PointerUp has occurred.
*
* Do not do pointer capture on input or textarea elements, all sorts of problems arise if you do!
* For example if you type into a password field you cannot set the cursor to the end of
* the text when re-entering it and so you cannot edit your password
*/
private native static void capturePointerEvents() /*-{
if ($wnd.PointerEvent) {
$wnd.addEventListener('pointerdown',
$entry(function(evt) {
if ((evt.target.tagName !== 'INPUT') && (evt.target.tagName !== 'TEXTAREA')) {
evt.target.setPointerCapture(evt.pointerId);
}
}), true);
}
else {
$wnd.addEventListener('MSPointerDown',
$entry(function(evt) {
if ((evt.target.tagName !== 'INPUT') && (evt.target.tagName !== 'TEXTAREA')) {
evt.target.msSetPointerCapture(evt.pointerId);
}
}), true);
}
}-*/;


public static native JavaScriptObject getCaptureEventDispatchers() /*-{
if ($wnd.PointerEvent) {
return {
pointerdown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointerup: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointermove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointercancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*)
};
}
else {
return {
MSPointerDown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
MSPointerUp: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
MSPointerMove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
MSPointerCancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*)
};
}
}-*/;

public static native JavaScriptObject getBitlessEventDispatchers() /*-{
if ($wnd.PointerEvent) {
return {
pointerdown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointerup: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointermove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointercancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*)
};
}
else {
return {
MSPointerDown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
MSPointerUp: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
MSPointerMove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
MSPointerCancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*)
};
}
}-*/;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package com.google.gwt.user.client.impl;

import com.google.gwt.core.client.JavaScriptObject;

/**
* Required by Safari permutation using pointer event model e.g. IEEdge
*/
public class DOMImplWebkitPointer extends DOMImplWebkit
{
static {
DOMImplStandard.addCaptureEventDispatchers(getCaptureEventDispatchers());
DOMImplStandard.addBitlessEventDispatchers(getBitlessEventDispatchers());
capturePointerEvents();
}

/**
* Lets have the same behaviour as IOS where the target element continues to receive Pointer events
* even when the pointer has moved off the element up until PointerUp has occurred.
*
* Do not do pointer capture on input or textarea elements, all sorts of problems arise if you do!
* For example if you type into a password field you cannot set the cursor to the end of
* the text when re-entering it and so you cannot edit your password
*/
private native static void capturePointerEvents() /*-{
$wnd.addEventListener('pointerdown',
$entry(function(evt) {
if ((evt.target.tagName !== 'INPUT') && (evt.target.tagName !== 'TEXTAREA')) {
evt.target.setPointerCapture(evt.pointerId);
}
}), true);
}-*/;


public static native JavaScriptObject getCaptureEventDispatchers() /*-{
return {
pointerdown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointerup: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointermove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*),
pointercancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*)
};
}-*/;

public static native JavaScriptObject getBitlessEventDispatchers() /*-{
return {
pointerdown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointerup: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointermove: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*),
pointercancel: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent(*)
};
}-*/;

}
1 change: 1 addition & 0 deletions src/main/java/com/googlecode/mgwt/MGWTMin.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
@see http://code.google.com/p/mgwt/issues/detail?id=215
-->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.googlecode.mgwt.useragent.UserAgent'/>
<inherits name='com.googlecode.mgwt.dom.DOM'/>
<inherits name='com.googlecode.mgwt.ui.UI'/>
<inherits name='com.googlecode.mgwt.mvp.MVP'/>
Expand Down
71 changes: 61 additions & 10 deletions src/main/java/com/googlecode/mgwt/dom/DOM.gwt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,35 @@
*/
-->
<module>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.googlecode.mgwt.collection.GwtCollections'/>
<!-- Eclipse mixes classpaths so we need to exclude tests here -->
<source path='client' excludes='**/*Test.java'/>
<inherits name='com.google.gwt.user.User' />
<inherits name='com.googlecode.mgwt.collection.GwtCollections' />
<!-- Eclipse mixes classpaths so we need to exclude tests here -->
<source path='client' excludes='**/*Test.java' />
<define-property name="mgwt.pointermodel" values="pointer,mouse_touch" />
<property-provider name="mgwt.pointermodel"><![CDATA[
// Detect pointer event support
if (window.PointerEvent || window.MSPointerEvent)
{
return "pointer";
}
// mouse or touch or both
return "mouse_touch";
]]></property-provider>

<define-property name="mgwt.formfactor" values="phone, tablet, desktop" />
<property-provider name="mgwt.formfactor"><![CDATA[
// Look for the formfactor as a url argument.
var args = location.search;
<!-- collaspe property so does not add additional compile time permutations -->
<collapse-property name="mgwt.pointermodel" values="*"/>
<!-- when ie10 then always pointer model -->
<set-property name="mgwt.pointermodel" value="pointer">
<any>
<when-property-is name="user.agent" value="ie10"/>
</any>
</set-property>

<define-property name="mgwt.formfactor" values="phone, tablet, desktop" />
<property-provider name="mgwt.formfactor"><![CDATA[
// Look for the formfactor as a url argument.
var args = location.search;
if (args) {
var start = args.indexOf("formfactor");
if (start >= 0) {
var value = args.substring(start);
Expand All @@ -35,10 +55,13 @@
}
return value.substring(begin, end);
}

}
// Detect form factor from user agent.
var ua = navigator.userAgent.toLowerCase();
if (ua.indexOf("iphone") != -1 || ua.indexOf("ipod") != -1) {
if (ua.indexOf("windows phone 8") != -1) {
// windows phone 8/8.1
return "phone";
} else if (ua.indexOf("iphone") != -1 || ua.indexOf("ipod") != -1) {
// iphone and ipod.
return "phone";
} else if (ua.indexOf("ipad") != -1) {
Expand All @@ -57,6 +80,11 @@
]]></property-provider>
<define-property name="mgwt.density" values="mid, high, xhigh" />
<property-provider name="mgwt.density"><![CDATA[
if (!window.devicePixelRatio) {
if ('deviceXDPI' in screen) {
window.devicePixelRatio = screen.deviceXDPI / screen.logicalXDPI;
}
}
if (!window.devicePixelRatio) {
return 'mid';
}
Expand All @@ -78,4 +106,27 @@
<replace-with class="com.googlecode.mgwt.dom.client.recognizer.EventPropagatorMobileImpl">
<when-type-is class="com.googlecode.mgwt.dom.client.recognizer.EventPropagator"/>
</replace-with>

<replace-with class="com.googlecode.mgwt.dom.client.recognizer.EventPropagatorStandardImpl">
<when-type-is class="com.googlecode.mgwt.dom.client.recognizer.EventPropagator"/>
<all>
<when-property-is name="user.agent" value="ie10" />
</all>
</replace-with>

<replace-with class="com.google.gwt.user.client.impl.DOMImplIE10">
<when-type-is class="com.google.gwt.user.client.impl.DOMImpl" />
<all>
<when-property-is name="user.agent" value="ie10" />
</all>
</replace-with>

<replace-with class="com.google.gwt.user.client.impl.DOMImplWebkitPointer">
<when-type-is class="com.google.gwt.user.client.impl.DOMImpl" />
<all>
<when-property-is name="mgwt.pointermodel" value="pointer" />
<when-property-is name="user.agent" value="safari" />
</all>
</replace-with>

</module>
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
package com.googlecode.mgwt.dom.client.event.animation;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.DomEvent;

/**
Expand Down Expand Up @@ -63,5 +64,12 @@ protected void dispatch(TransitionEndHandler handler) {
handler.onTransitionEnd(this);

}

public String getPropertyName() {
return getPropertyName(getNativeEvent());
}

private final native String getPropertyName(JavaScriptObject event) /*-{
return event.propertyName;
}-*/;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.googlecode.mgwt.dom.client.event.mouse;

import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Touch;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.TouchMoveEvent;
Expand Down Expand Up @@ -43,6 +44,17 @@ public SimulatedTouchMoveEvent(MouseMoveEvent event, int touchId) {
setSource(event.getSource());
}

public SimulatedTouchMoveEvent(int clientX, int clientY, int pageX,
int pageY, int touchId, NativeEvent event, Object source) {
this.touchId = touchId;
this.clientX = clientX;
this.clientY = clientY;
this.pageX = pageX;
this.pageY = pageY;
setNativeEvent(event);
setSource(source);
}

@Override
public JsArray<Touch> getChangedTouches() {
JsArray<Touch> array = SimulatedTouch.createTouchArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.googlecode.mgwt.dom.client.event.mouse;

import com.google.gwt.core.client.JsArray;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Touch;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.TouchStartEvent;
Expand Down Expand Up @@ -44,6 +45,17 @@ public SimulatedTouchStartEvent(MouseDownEvent event, int touchId) {
setSource(event.getSource());
}

public SimulatedTouchStartEvent(int clientX, int clientY, int pageX,
int pageY, int touchId, NativeEvent event, Object source) {
this.touchId = touchId;
this.clientX = clientX;
this.clientY = clientY;
this.pageX = pageX;
this.pageY = pageY;
setNativeEvent(event);
setSource(source);
}

@Override
public JsArray<Touch> getChangedTouches() {
JsArray<Touch> array = SimulatedTouch.createTouchArray();
Expand Down
Loading