[OpenLayers-Commits] r11420 -
sandbox/bartvde/sencha/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Feb 24 09:58:53 EST 2011
Author: bartvde
Date: 2011-02-24 06:58:52 -0800 (Thu, 24 Feb 2011)
New Revision: 11420
Modified:
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js
Log:
fix some issues in the Sencha example as reported by aabt
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-24 14:28:23 UTC (rev 11419)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-24 14:58:52 UTC (rev 11420)
@@ -14,6 +14,9 @@
<script src="mobile-sencha.js"></script>
<script src="mobile.js"></script>
<style>
+ .searchList {
+ min-height: 150px;
+ }
img.minus {
-webkit-mask-image: url(img/minus1.png);
}
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js 2011-02-24 14:28:23 UTC (rev 11419)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js 2011-02-24 14:58:52 UTC (rev 11420)
@@ -27,7 +27,8 @@
type: 'scripttag',
timeout: 5000,
listeners: {
- exception: function() {
+ exception: function() {
+ this.hide();
Ext.Msg.alert(this.errorTitle, this.errorText, Ext.emptyFn);
},
scope: this
@@ -42,15 +43,13 @@
},
doSearch: function(searchfield, evt){
var q = searchfield.getValue();
- if (q.length > 3) {
- this.store.load({
- params: {
- featureClass: this.featureClass,
- maxRows: this.maxResults,
- name_startsWith: encodeURIComponent(q)
- }
- });
- }
+ this.store.load({
+ params: {
+ featureClass: this.featureClass,
+ maxRows: this.maxResults,
+ name_startsWith: encodeURIComponent(q)
+ }
+ });
},
onItemTap: function(dataView, index, item, event){
var record = this.store.getAt(index);
@@ -66,6 +65,8 @@
this.createStore();
this.resultList = new Ext.List({
scroll: 'vertical',
+ cls: 'searchList',
+ loadingText: "Searching ...",
store: this.store,
itemTpl: '<div>{name} ({countryName})</div>',
listeners: {
@@ -90,7 +91,7 @@
}, this.resultList]
}]
});
- this.items = [this.formContainer];
+ this.items = [{xtype: 'panel', layout: 'fit', items: [this.formContainer]}];
GeoExt.SearchFormPopupPanel.superclass.initComponent.call(this);
}
});
More information about the Commits
mailing list