[OpenLayers-Commits] r11350 -
sandbox/bartvde/sencha/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 11:23:29 EST 2011
Author: bartvde
Date: 2011-02-23 08:23:29 -0800 (Wed, 23 Feb 2011)
New Revision: 11350
Modified:
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js
Log:
a bit of markup but still not aligned 100% properly
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 16:11:57 UTC (rev 11349)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.html 2011-02-23 16:23:29 UTC (rev 11350)
@@ -14,6 +14,9 @@
<script src="mobile-sencha.js"></script>
<script src="mobile.js"></script>
<style>
+ .gx-layer-item {
+ margin-left: 10px;
+ }
#map {
width: 100%;
height: 100%;
Modified: sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js
===================================================================
--- sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js 2011-02-23 16:11:57 UTC (rev 11349)
+++ sandbox/bartvde/sencha/openlayers/examples/mobile-sencha.js 2011-02-23 16:23:29 UTC (rev 11350)
@@ -24,14 +24,14 @@
initComponent: function() {
this.store = this.createStore();
- this.itemTpl = new Ext.XTemplate('<span>',
+ this.itemTpl = new Ext.XTemplate(
'<tpl if="visibility == true">',
'<img width="20" src="img/check-round-green.png">',
'</tpl>',
'<tpl if="visibility == false">',
'<img width="20" src="img/check-round-grey.png">',
'</tpl>',
- '{name}</span>');
+ '<span class="gx-layer-item">{name}</span>');
this.listeners = {
itemtap: function(dataview, index, item, e) {
var record = dataview.getStore().getAt(index);
More information about the Commits
mailing list