Skip to content

Commit

Permalink
fix up polygonAlign combo box
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van den Eijnden committed Jul 15, 2013
1 parent 01f2b43 commit 0a506f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/script/widgets/TextSymbolizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ gxp.TextSymbolizer = Ext.extend(Ext.Panel, {
}
}, {
xtype: "fieldset",
collapsed: !(this.symbolizer.labelAlign || this.symbolizer.labelXOffset || this.symbolizer.labelYOffset || this.symbolizer.labelPerpendicularOffset),
collapsed: !(this.symbolizer.labelAlign || this.symbolizer.vendorOptions['polygonAlign'] || this.symbolizer.labelXOffset || this.symbolizer.labelYOffset || this.symbolizer.labelPerpendicularOffset),
title: this.positioningText,
checkboxToggle: true,
autoHeight: true,
Expand Down Expand Up @@ -474,6 +474,9 @@ gxp.TextSymbolizer = Ext.extend(Ext.Panel, {
name: 'polygonAlign',
geometryTypes: ['POLYGON'],
xtype: "combo",
mode: 'local',
value: this.symbolizer.vendorOptions['polygonAlign'] || 'manual',
triggerAction: 'all',
store: ["manual", "ortho", "mbr"],
fieldLabel: this.polygonAlignText
})]
Expand Down Expand Up @@ -663,7 +666,7 @@ gxp.TextSymbolizer = Ext.extend(Ext.Panel, {
var field = Ext.ComponentMgr.create(Ext.applyIf(config, {
xtype: "numberfield",
allowNegative: false,
value: this.symbolizer.vendorOptions[config.name],
value: config.value || this.symbolizer.vendorOptions[config.name],
checked: (config.yesno === true) ? (this.symbolizer.vendorOptions[config.name] === 'yes') : this.symbolizer.vendorOptions[config.name],
plugins: [{
ptype: 'gxp_formfieldhelp',
Expand Down

0 comments on commit 0a506f3

Please sign in to comment.