extjs-rails 4.1.0.alpha5 → 4.1.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/extjs-rails.js +95613 -11000
- data/lib/extjs-rails/version.rb +1 -1
- metadata +2 -509
- data/app/assets/javascripts/src/AbstractComponent.js +0 -3290
- data/app/assets/javascripts/src/AbstractManager.js +0 -144
- data/app/assets/javascripts/src/AbstractPlugin.js +0 -72
- data/app/assets/javascripts/src/Action.js +0 -276
- data/app/assets/javascripts/src/Ajax.js +0 -99
- data/app/assets/javascripts/src/Component.js +0 -1344
- data/app/assets/javascripts/src/ComponentLoader.js +0 -202
- data/app/assets/javascripts/src/ComponentManager.js +0 -47
- data/app/assets/javascripts/src/ComponentQuery.js +0 -521
- data/app/assets/javascripts/src/Editor.js +0 -494
- data/app/assets/javascripts/src/ElementLoader.js +0 -404
- data/app/assets/javascripts/src/FocusManager.js +0 -712
- data/app/assets/javascripts/src/Img.js +0 -111
- data/app/assets/javascripts/src/Layer.js +0 -543
- data/app/assets/javascripts/src/LoadMask.js +0 -432
- data/app/assets/javascripts/src/ModelManager.js +0 -186
- data/app/assets/javascripts/src/PluginManager.js +0 -110
- data/app/assets/javascripts/src/ProgressBar.js +0 -336
- data/app/assets/javascripts/src/Shadow.js +0 -233
- data/app/assets/javascripts/src/ShadowPool.js +0 -43
- data/app/assets/javascripts/src/Template.js +0 -331
- data/app/assets/javascripts/src/XTemplate.js +0 -365
- data/app/assets/javascripts/src/XTemplateCompiler.js +0 -450
- data/app/assets/javascripts/src/XTemplateParser.js +0 -249
- data/app/assets/javascripts/src/ZIndexManager.js +0 -519
- data/app/assets/javascripts/src/app/Application.js +0 -271
- data/app/assets/javascripts/src/app/Controller.js +0 -458
- data/app/assets/javascripts/src/app/EventBus.js +0 -112
- data/app/assets/javascripts/src/button/Button.js +0 -1483
- data/app/assets/javascripts/src/button/Cycle.js +0 -215
- data/app/assets/javascripts/src/button/Split.js +0 -99
- data/app/assets/javascripts/src/chart/Callout.js +0 -140
- data/app/assets/javascripts/src/chart/Chart.js +0 -966
- data/app/assets/javascripts/src/chart/Highlight.js +0 -172
- data/app/assets/javascripts/src/chart/Label.js +0 -241
- data/app/assets/javascripts/src/chart/Legend.js +0 -474
- data/app/assets/javascripts/src/chart/LegendItem.js +0 -217
- data/app/assets/javascripts/src/chart/Mask.js +0 -230
- data/app/assets/javascripts/src/chart/MaskLayer.js +0 -48
- data/app/assets/javascripts/src/chart/Navigation.js +0 -79
- data/app/assets/javascripts/src/chart/Shape.js +0 -106
- data/app/assets/javascripts/src/chart/Tip.js +0 -98
- data/app/assets/javascripts/src/chart/TipSurface.js +0 -42
- data/app/assets/javascripts/src/chart/axis/Abstract.js +0 -73
- data/app/assets/javascripts/src/chart/axis/Axis.js +0 -961
- data/app/assets/javascripts/src/chart/axis/Category.js +0 -130
- data/app/assets/javascripts/src/chart/axis/Gauge.js +0 -203
- data/app/assets/javascripts/src/chart/axis/Numeric.js +0 -235
- data/app/assets/javascripts/src/chart/axis/Radial.js +0 -204
- data/app/assets/javascripts/src/chart/axis/Time.js +0 -135
- data/app/assets/javascripts/src/chart/series/Area.js +0 -803
- data/app/assets/javascripts/src/chart/series/Bar.js +0 -853
- data/app/assets/javascripts/src/chart/series/Cartesian.js +0 -328
- data/app/assets/javascripts/src/chart/series/Column.js +0 -104
- data/app/assets/javascripts/src/chart/series/Gauge.js +0 -490
- data/app/assets/javascripts/src/chart/series/Line.js +0 -1104
- data/app/assets/javascripts/src/chart/series/Pie.js +0 -1072
- data/app/assets/javascripts/src/chart/series/Radar.js +0 -440
- data/app/assets/javascripts/src/chart/series/Scatter.js +0 -668
- data/app/assets/javascripts/src/chart/series/Series.js +0 -443
- data/app/assets/javascripts/src/chart/theme/Base.js +0 -175
- data/app/assets/javascripts/src/chart/theme/Theme.js +0 -253
- data/app/assets/javascripts/src/container/AbstractContainer.js +0 -1062
- data/app/assets/javascripts/src/container/ButtonGroup.js +0 -143
- data/app/assets/javascripts/src/container/Container.js +0 -212
- data/app/assets/javascripts/src/container/DockingContainer.js +0 -265
- data/app/assets/javascripts/src/container/Viewport.js +0 -184
- data/app/assets/javascripts/src/core/dom/Element.form.js +0 -50
- data/app/assets/javascripts/src/core/dom/Element.static-more.js +0 -159
- data/app/assets/javascripts/src/core/examples/index.html +0 -321
- data/app/assets/javascripts/src/core/examples/index.js +0 -6
- data/app/assets/javascripts/src/core/examples/src/Sample/CTO.js +0 -25
- data/app/assets/javascripts/src/core/examples/src/Sample/CoolGuy.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Developer.js +0 -43
- data/app/assets/javascripts/src/core/examples/src/Sample/Gun.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/HumanResource.js +0 -23
- data/app/assets/javascripts/src/core/examples/src/Sample/Musician.js +0 -20
- data/app/assets/javascripts/src/core/examples/src/Sample/Person.js +0 -50
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanComposeSongs.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanPlayGuitar.js +0 -9
- data/app/assets/javascripts/src/core/examples/src/Sample/ability/CanSing.js +0 -18
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/B.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/D.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/deadlock/E.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/A.js +0 -3
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/B.js +0 -4
- data/app/assets/javascripts/src/core/examples/src/Sample/notdeadlock/C.js +0 -3
- data/app/assets/javascripts/src/core/src/EventManager.js +0 -1167
- data/app/assets/javascripts/src/core/src/EventObject.js +0 -883
- data/app/assets/javascripts/src/core/src/Ext-more.js +0 -1283
- data/app/assets/javascripts/src/core/src/Ext.js +0 -736
- data/app/assets/javascripts/src/core/src/Support.js +0 -662
- data/app/assets/javascripts/src/core/src/class/Base.js +0 -1085
- data/app/assets/javascripts/src/core/src/class/Class.js +0 -676
- data/app/assets/javascripts/src/core/src/class/ClassManager.js +0 -1591
- data/app/assets/javascripts/src/core/src/class/Loader.js +0 -1423
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.alignment.js +0 -173
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.insertion.js +0 -193
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.js +0 -681
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.position.js +0 -356
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.static.js +0 -474
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.style.js +0 -851
- data/app/assets/javascripts/src/core/src/dom/AbstractElement.traversal.js +0 -180
- data/app/assets/javascripts/src/core/src/dom/AbstractHelper.js +0 -291
- data/app/assets/javascripts/src/core/src/dom/AbstractQuery.js +0 -72
- data/app/assets/javascripts/src/core/src/dom/CompositeElement.js +0 -75
- data/app/assets/javascripts/src/core/src/dom/CompositeElementLite.js +0 -436
- data/app/assets/javascripts/src/core/src/dom/DomQuery-aria.js +0 -1049
- data/app/assets/javascripts/src/core/src/env/Browser.js +0 -186
- data/app/assets/javascripts/src/core/src/env/FeatureDetector.js +0 -274
- data/app/assets/javascripts/src/core/src/env/OS.js +0 -141
- data/app/assets/javascripts/src/core/src/lang/Array.js +0 -1205
- data/app/assets/javascripts/src/core/src/lang/Date.js +0 -1463
- data/app/assets/javascripts/src/core/src/lang/Error.js +0 -326
- data/app/assets/javascripts/src/core/src/lang/Function.js +0 -485
- data/app/assets/javascripts/src/core/src/lang/Number.js +0 -175
- data/app/assets/javascripts/src/core/src/lang/Object.js +0 -606
- data/app/assets/javascripts/src/core/src/lang/String.js +0 -333
- data/app/assets/javascripts/src/core/src/misc/JSON.js +0 -236
- data/app/assets/javascripts/src/core/src/perf/Accumulator.js +0 -244
- data/app/assets/javascripts/src/core/src/perf/Monitor.js +0 -197
- data/app/assets/javascripts/src/core/src/util/DelayedTask.js +0 -71
- data/app/assets/javascripts/src/core/src/util/Event.js +0 -215
- data/app/assets/javascripts/src/core/src/util/Format.js +0 -551
- data/app/assets/javascripts/src/core/src/util/TaskManager.js +0 -417
- data/app/assets/javascripts/src/core/src/version/Version.js +0 -364
- data/app/assets/javascripts/src/core/test/unit/README.MD +0 -91
- data/app/assets/javascripts/src/core/test/unit/bootstrap.js +0 -39
- data/app/assets/javascripts/src/core/test/unit/build/build-data.js +0 -34
- data/app/assets/javascripts/src/core/test/unit/build/build.sh +0 -2
- data/app/assets/javascripts/src/core/test/unit/data.js +0 -27
- data/app/assets/javascripts/src/core/test/unit/index.html +0 -15
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom.html +0 -40
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/extjs-api.js +0 -12
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/platform-api.js +0 -134
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/sanity.js +0 -4
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api-out.js +0 -128
- data/app/assets/javascripts/src/core/test/unit/other_specs/dom/touch-api.js +0 -89
- data/app/assets/javascripts/src/core/test/unit/other_specs/env/Environment.js +0 -357
- data/app/assets/javascripts/src/core/test/unit/resources/APITest.js +0 -37
- data/app/assets/javascripts/src/core/test/unit/resources/jsb3.js +0 -14
- data/app/assets/javascripts/src/core/test/unit/resources/test-setup.js +0 -137
- data/app/assets/javascripts/src/core/test/unit/spec/EventManager.js +0 -629
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-mess.backup +0 -198
- data/app/assets/javascripts/src/core/test/unit/spec/Ext-more.js +0 -520
- data/app/assets/javascripts/src/core/test/unit/spec/Ext.js +0 -1550
- data/app/assets/javascripts/src/core/test/unit/spec/Support.js +0 -250
- data/app/assets/javascripts/src/core/test/unit/spec/class/Base.js +0 -47
- data/app/assets/javascripts/src/core/test/unit/spec/class/Class.js +0 -561
- data/app/assets/javascripts/src/core/test/unit/spec/class/ClassManager.js +0 -555
- data/app/assets/javascripts/src/core/test/unit/spec/dom/CompositeElementLite.js +0 -409
- data/app/assets/javascripts/src/core/test/unit/spec/dom/DomHelper.js +0 -444
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.insertion.js +0 -342
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.js +0 -731
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.static.js +0 -201
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.style.js +0 -118
- data/app/assets/javascripts/src/core/test/unit/spec/dom/Element.traversal.js +0 -336
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Array.js +0 -1229
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Date.js +0 -697
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Error.js +0 -277
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Function.js +0 -536
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Number.js +0 -323
- data/app/assets/javascripts/src/core/test/unit/spec/lang/Object.js +0 -591
- data/app/assets/javascripts/src/core/test/unit/spec/lang/String.js +0 -451
- data/app/assets/javascripts/src/core/test/unit/spec/misc/JSON.js +0 -252
- data/app/assets/javascripts/src/core/test/unit/spec/util/Format.js +0 -521
- data/app/assets/javascripts/src/core/test/unit/spec/version/Version.js +0 -148
- data/app/assets/javascripts/src/core/test/unit/specs.html +0 -19
- data/app/assets/javascripts/src/data/AbstractStore.js +0 -887
- data/app/assets/javascripts/src/data/ArrayStore.js +0 -74
- data/app/assets/javascripts/src/data/Batch.js +0 -236
- data/app/assets/javascripts/src/data/BufferStore.js +0 -13
- data/app/assets/javascripts/src/data/Connection.js +0 -969
- data/app/assets/javascripts/src/data/DirectStore.js +0 -50
- data/app/assets/javascripts/src/data/Errors.js +0 -52
- data/app/assets/javascripts/src/data/Field.js +0 -341
- data/app/assets/javascripts/src/data/IdGenerator.js +0 -198
- data/app/assets/javascripts/src/data/JsonP.js +0 -253
- data/app/assets/javascripts/src/data/JsonPStore.js +0 -51
- data/app/assets/javascripts/src/data/JsonStore.js +0 -60
- data/app/assets/javascripts/src/data/Model.js +0 -1673
- data/app/assets/javascripts/src/data/NodeInterface.js +0 -1294
- data/app/assets/javascripts/src/data/NodeStore.js +0 -254
- data/app/assets/javascripts/src/data/Operation.js +0 -331
- data/app/assets/javascripts/src/data/Request.js +0 -40
- data/app/assets/javascripts/src/data/ResultSet.js +0 -56
- data/app/assets/javascripts/src/data/SequentialIdGenerator.js +0 -61
- data/app/assets/javascripts/src/data/SortTypes.js +0 -125
- data/app/assets/javascripts/src/data/Store.js +0 -2609
- data/app/assets/javascripts/src/data/StoreManager.js +0 -156
- data/app/assets/javascripts/src/data/Tree.js +0 -290
- data/app/assets/javascripts/src/data/TreeStore.js +0 -655
- data/app/assets/javascripts/src/data/Types.js +0 -190
- data/app/assets/javascripts/src/data/UuidGenerator.js +0 -215
- data/app/assets/javascripts/src/data/XmlStore.js +0 -76
- data/app/assets/javascripts/src/data/association/Association.js +0 -243
- data/app/assets/javascripts/src/data/association/BelongsTo.js +0 -291
- data/app/assets/javascripts/src/data/association/HasMany.js +0 -289
- data/app/assets/javascripts/src/data/association/HasOne.js +0 -304
- data/app/assets/javascripts/src/data/proxy/Ajax.js +0 -282
- data/app/assets/javascripts/src/data/proxy/Client.js +0 -21
- data/app/assets/javascripts/src/data/proxy/Direct.js +0 -181
- data/app/assets/javascripts/src/data/proxy/JsonP.js +0 -313
- data/app/assets/javascripts/src/data/proxy/LocalStorage.js +0 -69
- data/app/assets/javascripts/src/data/proxy/Memory.js +0 -156
- data/app/assets/javascripts/src/data/proxy/Proxy.js +0 -433
- data/app/assets/javascripts/src/data/proxy/Rest.js +0 -173
- data/app/assets/javascripts/src/data/proxy/Server.js +0 -460
- data/app/assets/javascripts/src/data/proxy/SessionStorage.js +0 -39
- data/app/assets/javascripts/src/data/proxy/WebStorage.js +0 -546
- data/app/assets/javascripts/src/data/reader/Array.js +0 -68
- data/app/assets/javascripts/src/data/reader/Json.js +0 -383
- data/app/assets/javascripts/src/data/reader/Reader.js +0 -735
- data/app/assets/javascripts/src/data/reader/Xml.js +0 -292
- data/app/assets/javascripts/src/data/validations.js +0 -149
- data/app/assets/javascripts/src/data/writer/Json.js +0 -81
- data/app/assets/javascripts/src/data/writer/Writer.js +0 -147
- data/app/assets/javascripts/src/data/writer/Xml.js +0 -88
- data/app/assets/javascripts/src/dd/DD.js +0 -300
- data/app/assets/javascripts/src/dd/DDProxy.js +0 -204
- data/app/assets/javascripts/src/dd/DDTarget.js +0 -171
- data/app/assets/javascripts/src/dd/DragDrop.js +0 -1101
- data/app/assets/javascripts/src/dd/DragDropManager.js +0 -1264
- data/app/assets/javascripts/src/dd/DragSource.js +0 -392
- data/app/assets/javascripts/src/dd/DragTracker.js +0 -562
- data/app/assets/javascripts/src/dd/DragZone.js +0 -137
- data/app/assets/javascripts/src/dd/DropTarget.js +0 -118
- data/app/assets/javascripts/src/dd/DropZone.js +0 -254
- data/app/assets/javascripts/src/dd/Registry.js +0 -117
- data/app/assets/javascripts/src/dd/ScrollManager.js +0 -218
- data/app/assets/javascripts/src/dd/StatusProxy.js +0 -179
- data/app/assets/javascripts/src/diag/layout/Context.js +0 -523
- data/app/assets/javascripts/src/diag/layout/ContextItem.js +0 -179
- data/app/assets/javascripts/src/direct/Event.js +0 -35
- data/app/assets/javascripts/src/direct/ExceptionEvent.js +0 -16
- data/app/assets/javascripts/src/direct/JsonProvider.js +0 -82
- data/app/assets/javascripts/src/direct/Manager.js +0 -263
- data/app/assets/javascripts/src/direct/PollingProvider.js +0 -156
- data/app/assets/javascripts/src/direct/Provider.js +0 -96
- data/app/assets/javascripts/src/direct/RemotingEvent.js +0 -24
- data/app/assets/javascripts/src/direct/RemotingMethod.js +0 -100
- data/app/assets/javascripts/src/direct/RemotingProvider.js +0 -510
- data/app/assets/javascripts/src/direct/Transaction.js +0 -41
- data/app/assets/javascripts/src/dom/Element.alignment.js +0 -378
- data/app/assets/javascripts/src/dom/Element.anim.js +0 -962
- data/app/assets/javascripts/src/dom/Element.dd.js +0 -40
- data/app/assets/javascripts/src/dom/Element.fx.js +0 -194
- data/app/assets/javascripts/src/dom/Element.js +0 -1407
- data/app/assets/javascripts/src/dom/Element.position.js +0 -501
- data/app/assets/javascripts/src/dom/Element.scroll.js +0 -214
- data/app/assets/javascripts/src/dom/Element.style.js +0 -792
- data/app/assets/javascripts/src/dom/Element.traversal.js +0 -8
- data/app/assets/javascripts/src/dom/Helper.js +0 -466
- data/app/assets/javascripts/src/dom/Query.js +0 -1067
- data/app/assets/javascripts/src/draw/Color.js +0 -303
- data/app/assets/javascripts/src/draw/Component.js +0 -245
- data/app/assets/javascripts/src/draw/CompositeSprite.js +0 -299
- data/app/assets/javascripts/src/draw/Draw.js +0 -1217
- data/app/assets/javascripts/src/draw/Matrix.js +0 -183
- data/app/assets/javascripts/src/draw/Sprite.js +0 -554
- data/app/assets/javascripts/src/draw/SpriteDD.js +0 -87
- data/app/assets/javascripts/src/draw/Surface.js +0 -1001
- data/app/assets/javascripts/src/draw/Text.js +0 -175
- data/app/assets/javascripts/src/draw/engine/ImageExporter.js +0 -106
- data/app/assets/javascripts/src/draw/engine/Svg.js +0 -734
- data/app/assets/javascripts/src/draw/engine/SvgExporter.js +0 -280
- data/app/assets/javascripts/src/draw/engine/Vml.js +0 -916
- data/app/assets/javascripts/src/flash/Component.js +0 -248
- data/app/assets/javascripts/src/form/Basic.js +0 -1018
- data/app/assets/javascripts/src/form/CheckboxGroup.js +0 -441
- data/app/assets/javascripts/src/form/CheckboxManager.js +0 -26
- data/app/assets/javascripts/src/form/FieldAncestor.js +0 -210
- data/app/assets/javascripts/src/form/FieldContainer.js +0 -290
- data/app/assets/javascripts/src/form/FieldSet.js +0 -506
- data/app/assets/javascripts/src/form/Label.js +0 -110
- data/app/assets/javascripts/src/form/Labelable.js +0 -764
- data/app/assets/javascripts/src/form/Panel.js +0 -335
- data/app/assets/javascripts/src/form/RadioGroup.js +0 -124
- data/app/assets/javascripts/src/form/RadioManager.js +0 -26
- data/app/assets/javascripts/src/form/action/Action.js +0 -307
- data/app/assets/javascripts/src/form/action/DirectLoad.js +0 -107
- data/app/assets/javascripts/src/form/action/DirectSubmit.js +0 -119
- data/app/assets/javascripts/src/form/action/Load.js +0 -120
- data/app/assets/javascripts/src/form/action/StandardSubmit.js +0 -34
- data/app/assets/javascripts/src/form/action/Submit.js +0 -257
- data/app/assets/javascripts/src/form/field/Base.js +0 -813
- data/app/assets/javascripts/src/form/field/Checkbox.js +0 -505
- data/app/assets/javascripts/src/form/field/ComboBox.js +0 -1427
- data/app/assets/javascripts/src/form/field/Date.js +0 -578
- data/app/assets/javascripts/src/form/field/Display.js +0 -155
- data/app/assets/javascripts/src/form/field/Field.js +0 -430
- data/app/assets/javascripts/src/form/field/File.js +0 -265
- data/app/assets/javascripts/src/form/field/Hidden.js +0 -75
- data/app/assets/javascripts/src/form/field/HtmlEditor.js +0 -1439
- data/app/assets/javascripts/src/form/field/Number.js +0 -380
- data/app/assets/javascripts/src/form/field/Picker.js +0 -321
- data/app/assets/javascripts/src/form/field/Radio.js +0 -279
- data/app/assets/javascripts/src/form/field/Spinner.js +0 -321
- data/app/assets/javascripts/src/form/field/Text.js +0 -727
- data/app/assets/javascripts/src/form/field/TextArea.js +0 -228
- data/app/assets/javascripts/src/form/field/Time.js +0 -459
- data/app/assets/javascripts/src/form/field/Trigger.js +0 -469
- data/app/assets/javascripts/src/form/field/VTypes.js +0 -172
- data/app/assets/javascripts/src/fx/Anim.js +0 -472
- data/app/assets/javascripts/src/fx/Animator.js +0 -410
- data/app/assets/javascripts/src/fx/CubicBezier.js +0 -77
- data/app/assets/javascripts/src/fx/Easing.js +0 -136
- data/app/assets/javascripts/src/fx/Manager.js +0 -353
- data/app/assets/javascripts/src/fx/PropertyHandler.js +0 -381
- data/app/assets/javascripts/src/fx/Queue.js +0 -123
- data/app/assets/javascripts/src/fx/target/Component.js +0 -118
- data/app/assets/javascripts/src/fx/target/CompositeElement.js +0 -46
- data/app/assets/javascripts/src/fx/target/CompositeElementCSS.js +0 -22
- data/app/assets/javascripts/src/fx/target/CompositeSprite.js +0 -34
- data/app/assets/javascripts/src/fx/target/Element.js +0 -83
- data/app/assets/javascripts/src/fx/target/ElementCSS.js +0 -77
- data/app/assets/javascripts/src/fx/target/Sprite.js +0 -128
- data/app/assets/javascripts/src/fx/target/Target.js +0 -36
- data/app/assets/javascripts/src/grid/CellEditor.js +0 -172
- data/app/assets/javascripts/src/grid/ColumnComponentLayout.js +0 -34
- data/app/assets/javascripts/src/grid/ColumnLayout.js +0 -201
- data/app/assets/javascripts/src/grid/Lockable.js +0 -863
- data/app/assets/javascripts/src/grid/LockingView.js +0 -169
- data/app/assets/javascripts/src/grid/PagingScroller.js +0 -539
- data/app/assets/javascripts/src/grid/Panel.js +0 -393
- data/app/assets/javascripts/src/grid/RowEditor.js +0 -731
- data/app/assets/javascripts/src/grid/RowNumberer.js +0 -76
- data/app/assets/javascripts/src/grid/Scroller.js +0 -5
- data/app/assets/javascripts/src/grid/View.js +0 -44
- data/app/assets/javascripts/src/grid/ViewDropZone.js +0 -41
- data/app/assets/javascripts/src/grid/column/Action.js +0 -318
- data/app/assets/javascripts/src/grid/column/Boolean.js +0 -82
- data/app/assets/javascripts/src/grid/column/Column.js +0 -835
- data/app/assets/javascripts/src/grid/column/Date.js +0 -63
- data/app/assets/javascripts/src/grid/column/Number.js +0 -52
- data/app/assets/javascripts/src/grid/column/Template.js +0 -58
- data/app/assets/javascripts/src/grid/feature/AbstractSummary.js +0 -154
- data/app/assets/javascripts/src/grid/feature/Chunking.js +0 -77
- data/app/assets/javascripts/src/grid/feature/Feature.js +0 -158
- data/app/assets/javascripts/src/grid/feature/Grouping.js +0 -822
- data/app/assets/javascripts/src/grid/feature/GroupingSummary.js +0 -243
- data/app/assets/javascripts/src/grid/feature/RowBody.js +0 -116
- data/app/assets/javascripts/src/grid/feature/RowWrap.js +0 -120
- data/app/assets/javascripts/src/grid/feature/Summary.js +0 -167
- data/app/assets/javascripts/src/grid/header/Container.js +0 -965
- data/app/assets/javascripts/src/grid/header/DragZone.js +0 -69
- data/app/assets/javascripts/src/grid/header/DropZone.js +0 -265
- data/app/assets/javascripts/src/grid/plugin/CellEditing.js +0 -453
- data/app/assets/javascripts/src/grid/plugin/DragDrop.js +0 -254
- data/app/assets/javascripts/src/grid/plugin/Editing.js +0 -561
- data/app/assets/javascripts/src/grid/plugin/HeaderReorderer.js +0 -49
- data/app/assets/javascripts/src/grid/plugin/HeaderResizer.js +0 -292
- data/app/assets/javascripts/src/grid/plugin/RowEditing.js +0 -339
- data/app/assets/javascripts/src/grid/property/Grid.js +0 -351
- data/app/assets/javascripts/src/grid/property/HeaderContainer.js +0 -109
- data/app/assets/javascripts/src/grid/property/Property.js +0 -36
- data/app/assets/javascripts/src/grid/property/Store.js +0 -141
- data/app/assets/javascripts/src/layout/ClassList.js +0 -90
- data/app/assets/javascripts/src/layout/Context.js +0 -1232
- data/app/assets/javascripts/src/layout/ContextItem.js +0 -1470
- data/app/assets/javascripts/src/layout/Layout.js +0 -761
- data/app/assets/javascripts/src/layout/component/Auto.js +0 -220
- data/app/assets/javascripts/src/layout/component/Body.js +0 -80
- data/app/assets/javascripts/src/layout/component/BoundList.js +0 -95
- data/app/assets/javascripts/src/layout/component/Button.js +0 -261
- data/app/assets/javascripts/src/layout/component/Component.js +0 -427
- data/app/assets/javascripts/src/layout/component/Dock.js +0 -1132
- data/app/assets/javascripts/src/layout/component/Draw.js +0 -79
- data/app/assets/javascripts/src/layout/component/FieldSet.js +0 -62
- data/app/assets/javascripts/src/layout/component/ProgressBar.js +0 -54
- data/app/assets/javascripts/src/layout/component/Tab.js +0 -23
- data/app/assets/javascripts/src/layout/component/field/ComboBox.js +0 -52
- data/app/assets/javascripts/src/layout/component/field/Field.js +0 -372
- data/app/assets/javascripts/src/layout/component/field/FieldContainer.js +0 -48
- data/app/assets/javascripts/src/layout/component/field/HtmlEditor.js +0 -54
- data/app/assets/javascripts/src/layout/component/field/Slider.js +0 -58
- data/app/assets/javascripts/src/layout/component/field/Text.js +0 -75
- data/app/assets/javascripts/src/layout/component/field/TextArea.js +0 -51
- data/app/assets/javascripts/src/layout/component/field/Trigger.js +0 -132
- data/app/assets/javascripts/src/layout/container/Absolute.js +0 -121
- data/app/assets/javascripts/src/layout/container/Accordion.js +0 -308
- data/app/assets/javascripts/src/layout/container/Anchor.js +0 -403
- data/app/assets/javascripts/src/layout/container/Auto.js +0 -70
- data/app/assets/javascripts/src/layout/container/Border-old-js +0 -1079
- data/app/assets/javascripts/src/layout/container/Border.js +0 -816
- data/app/assets/javascripts/src/layout/container/Box.js +0 -929
- data/app/assets/javascripts/src/layout/container/Card.js +0 -361
- data/app/assets/javascripts/src/layout/container/CheckboxGroup.js +0 -376
- data/app/assets/javascripts/src/layout/container/Column.js +0 -234
- data/app/assets/javascripts/src/layout/container/Container.js +0 -961
- data/app/assets/javascripts/src/layout/container/Editor.js +0 -74
- data/app/assets/javascripts/src/layout/container/Fit.js +0 -287
- data/app/assets/javascripts/src/layout/container/Form.js +0 -157
- data/app/assets/javascripts/src/layout/container/HBox.js +0 -134
- data/app/assets/javascripts/src/layout/container/Table.js +0 -412
- data/app/assets/javascripts/src/layout/container/VBox.js +0 -139
- data/app/assets/javascripts/src/layout/container/boxOverflow/Menu.js +0 -365
- data/app/assets/javascripts/src/layout/container/boxOverflow/None.js +0 -83
- data/app/assets/javascripts/src/layout/container/boxOverflow/Scroller.js +0 -475
- data/app/assets/javascripts/src/menu/CheckItem.js +0 -169
- data/app/assets/javascripts/src/menu/ColorPicker.js +0 -110
- data/app/assets/javascripts/src/menu/DatePicker.js +0 -100
- data/app/assets/javascripts/src/menu/Item.js +0 -553
- data/app/assets/javascripts/src/menu/KeyNav.js +0 -134
- data/app/assets/javascripts/src/menu/Manager.js +0 -219
- data/app/assets/javascripts/src/menu/Menu.js +0 -579
- data/app/assets/javascripts/src/menu/Separator.js +0 -126
- data/app/assets/javascripts/src/panel/AbstractPanel.js +0 -323
- data/app/assets/javascripts/src/panel/DD.js +0 -99
- data/app/assets/javascripts/src/panel/Header.js +0 -518
- data/app/assets/javascripts/src/panel/Panel.js +0 -2150
- data/app/assets/javascripts/src/panel/Proxy.js +0 -131
- data/app/assets/javascripts/src/panel/Table.js +0 -1018
- data/app/assets/javascripts/src/panel/Tool.js +0 -304
- data/app/assets/javascripts/src/picker/Color.js +0 -219
- data/app/assets/javascripts/src/picker/Date.js +0 -1140
- data/app/assets/javascripts/src/picker/Month.js +0 -490
- data/app/assets/javascripts/src/picker/Time.js +0 -165
- data/app/assets/javascripts/src/resizer/BorderSplitter.js +0 -22
- data/app/assets/javascripts/src/resizer/BorderSplitterTracker.js +0 -210
- data/app/assets/javascripts/src/resizer/Handle.js +0 -29
- data/app/assets/javascripts/src/resizer/ResizeTracker.js +0 -346
- data/app/assets/javascripts/src/resizer/Resizer.js +0 -477
- data/app/assets/javascripts/src/resizer/Splitter.js +0 -242
- data/app/assets/javascripts/src/resizer/SplitterTracker.js +0 -230
- data/app/assets/javascripts/src/selection/CellModel.js +0 -395
- data/app/assets/javascripts/src/selection/CheckboxModel.js +0 -234
- data/app/assets/javascripts/src/selection/DataViewModel.js +0 -160
- data/app/assets/javascripts/src/selection/Model.js +0 -646
- data/app/assets/javascripts/src/selection/RowModel.js +0 -499
- data/app/assets/javascripts/src/selection/TreeModel.js +0 -78
- data/app/assets/javascripts/src/slider/Multi.js +0 -835
- data/app/assets/javascripts/src/slider/Single.js +0 -56
- data/app/assets/javascripts/src/slider/Thumb.js +0 -259
- data/app/assets/javascripts/src/slider/Tip.js +0 -130
- data/app/assets/javascripts/src/state/CookieProvider.js +0 -120
- data/app/assets/javascripts/src/state/LocalStorageProvider.js +0 -72
- data/app/assets/javascripts/src/state/Manager.js +0 -70
- data/app/assets/javascripts/src/state/Provider.js +0 -182
- data/app/assets/javascripts/src/state/Stateful.js +0 -364
- data/app/assets/javascripts/src/tab/Bar.js +0 -258
- data/app/assets/javascripts/src/tab/Panel.js +0 -654
- data/app/assets/javascripts/src/tab/Tab.js +0 -358
- data/app/assets/javascripts/src/tail.js +0 -10
- data/app/assets/javascripts/src/tip/QuickTip.js +0 -335
- data/app/assets/javascripts/src/tip/QuickTipManager.js +0 -239
- data/app/assets/javascripts/src/tip/Tip.js +0 -160
- data/app/assets/javascripts/src/tip/ToolTip.js +0 -691
- data/app/assets/javascripts/src/toolbar/Fill.js +0 -28
- data/app/assets/javascripts/src/toolbar/Item.js +0 -16
- data/app/assets/javascripts/src/toolbar/Paging.js +0 -600
- data/app/assets/javascripts/src/toolbar/Separator.js +0 -23
- data/app/assets/javascripts/src/toolbar/Spacer.js +0 -33
- data/app/assets/javascripts/src/toolbar/TextItem.js +0 -57
- data/app/assets/javascripts/src/toolbar/Toolbar-legacy.js +0 -123
- data/app/assets/javascripts/src/toolbar/Toolbar.js +0 -447
- data/app/assets/javascripts/src/tree/Column.js +0 -90
- data/app/assets/javascripts/src/tree/Panel.js +0 -505
- data/app/assets/javascripts/src/tree/View.js +0 -658
- data/app/assets/javascripts/src/tree/ViewDragZone.js +0 -49
- data/app/assets/javascripts/src/tree/ViewDropZone.js +0 -287
- data/app/assets/javascripts/src/tree/plugin/TreeViewDragDrop.js +0 -244
- data/app/assets/javascripts/src/util/AbstractMixedCollection.js +0 -772
- data/app/assets/javascripts/src/util/Animate.js +0 -426
- data/app/assets/javascripts/src/util/Bindable.js +0 -102
- data/app/assets/javascripts/src/util/CSS.js +0 -185
- data/app/assets/javascripts/src/util/ClickRepeater.js +0 -238
- data/app/assets/javascripts/src/util/ComponentDragger.js +0 -126
- data/app/assets/javascripts/src/util/Cookies.js +0 -91
- data/app/assets/javascripts/src/util/ElementContainer.js +0 -293
- data/app/assets/javascripts/src/util/Filter.js +0 -159
- data/app/assets/javascripts/src/util/Floating.js +0 -321
- data/app/assets/javascripts/src/util/Grouper.js +0 -26
- data/app/assets/javascripts/src/util/HashMap.js +0 -356
- data/app/assets/javascripts/src/util/History.js +0 -285
- data/app/assets/javascripts/src/util/Inflector.js +0 -297
- data/app/assets/javascripts/src/util/KeyMap.js +0 -427
- data/app/assets/javascripts/src/util/KeyNav.js +0 -239
- data/app/assets/javascripts/src/util/LruCache.js +0 -257
- data/app/assets/javascripts/src/util/Memento.js +0 -131
- data/app/assets/javascripts/src/util/MixedCollection.js +0 -239
- data/app/assets/javascripts/src/util/Observable.js +0 -1003
- data/app/assets/javascripts/src/util/Offset.js +0 -60
- data/app/assets/javascripts/src/util/Point.js +0 -93
- data/app/assets/javascripts/src/util/ProtoElement.js +0 -205
- data/app/assets/javascripts/src/util/Queue.js +0 -76
- data/app/assets/javascripts/src/util/Region.js +0 -388
- data/app/assets/javascripts/src/util/Renderable.js +0 -1079
- data/app/assets/javascripts/src/util/Sortable.js +0 -248
- data/app/assets/javascripts/src/util/Sorter.js +0 -179
- data/app/assets/javascripts/src/util/TextMetrics.js +0 -148
- data/app/assets/javascripts/src/view/AbstractView.js +0 -1103
- data/app/assets/javascripts/src/view/BoundList.js +0 -207
- data/app/assets/javascripts/src/view/BoundListKeyNav.js +0 -92
- data/app/assets/javascripts/src/view/DragZone.js +0 -106
- data/app/assets/javascripts/src/view/DropZone.js +0 -240
- data/app/assets/javascripts/src/view/Table.js +0 -1229
- data/app/assets/javascripts/src/view/TableChunker.js +0 -139
- data/app/assets/javascripts/src/view/View.js +0 -636
- data/app/assets/javascripts/src/window/MessageBox.js +0 -880
- data/app/assets/javascripts/src/window/Window-legacy.js +0 -56
- data/app/assets/javascripts/src/window/Window.js +0 -793
@@ -1,816 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* This is a multi-pane, application-oriented UI layout style that supports multiple nested panels, automatic bars
|
3
|
-
* between regions and built-in {@link Ext.panel.Panel#collapsible expanding and collapsing} of regions.
|
4
|
-
*
|
5
|
-
* This class is intended to be extended or created via the `layout:'border'` {@link Ext.container.Container#layout}
|
6
|
-
* config, and should generally not need to be created directly via the new keyword.
|
7
|
-
*
|
8
|
-
* @example
|
9
|
-
* Ext.create('Ext.panel.Panel', {
|
10
|
-
* width: 500,
|
11
|
-
* height: 300,
|
12
|
-
* title: 'Border Layout',
|
13
|
-
* layout: 'border',
|
14
|
-
* items: [{
|
15
|
-
* title: 'South Region is resizable',
|
16
|
-
* region: 'south', // position for region
|
17
|
-
* xtype: 'panel',
|
18
|
-
* height: 100,
|
19
|
-
* split: true, // enable resizing
|
20
|
-
* margins: '0 5 5 5'
|
21
|
-
* },{
|
22
|
-
* // xtype: 'panel' implied by default
|
23
|
-
* title: 'West Region is collapsible',
|
24
|
-
* region:'west',
|
25
|
-
* xtype: 'panel',
|
26
|
-
* margins: '5 0 0 5',
|
27
|
-
* width: 200,
|
28
|
-
* collapsible: true, // make collapsible
|
29
|
-
* id: 'west-region-container',
|
30
|
-
* layout: 'fit'
|
31
|
-
* },{
|
32
|
-
* title: 'Center Region',
|
33
|
-
* region: 'center', // center region is required, no width/height specified
|
34
|
-
* xtype: 'panel',
|
35
|
-
* layout: 'fit',
|
36
|
-
* margins: '5 5 0 0'
|
37
|
-
* }],
|
38
|
-
* renderTo: Ext.getBody()
|
39
|
-
* });
|
40
|
-
*
|
41
|
-
* # Notes
|
42
|
-
*
|
43
|
-
* - When using the split option, the layout will automatically insert a {@link Ext.resizer.Splitter}
|
44
|
-
* into the appropriate place. This will modify the underlying
|
45
|
-
* {@link Ext.container.Container#property-items items} collection in the container.
|
46
|
-
*
|
47
|
-
* - Any Container using the Border layout **must** have a child item with `region:'center'`.
|
48
|
-
* The child item in the center region will always be resized to fill the remaining space
|
49
|
-
* not used by the other regions in the layout.
|
50
|
-
*
|
51
|
-
* - Any child items with a region of `west` or `east` may be configured with either an initial
|
52
|
-
* `width`, or a {@link Ext.layout.container.Box#flex} value, or an initial percentage width
|
53
|
-
* **string** (Which is simply divided by 100 and used as a flex value).
|
54
|
-
* The 'center' region has a flex value of `1`.
|
55
|
-
*
|
56
|
-
* - Any child items with a region of `north` or `south` may be configured with either an initial
|
57
|
-
* `height`, or a {@link Ext.layout.container.Box#flex} value, or an initial percentage height
|
58
|
-
* **string** (Which is simply divided by 100 and used as a flex value).
|
59
|
-
* The 'center' region has a flex value of `1`.
|
60
|
-
*
|
61
|
-
* - **There is no BorderLayout.Region class in ExtJS 4.0+**
|
62
|
-
*/
|
63
|
-
Ext.define('Ext.layout.container.Border', {
|
64
|
-
|
65
|
-
alias: 'layout.border',
|
66
|
-
|
67
|
-
extend: 'Ext.layout.container.Container',
|
68
|
-
|
69
|
-
requires: ['Ext.resizer.BorderSplitter', 'Ext.Component', 'Ext.fx.Anim'],
|
70
|
-
|
71
|
-
alternateClassName: 'Ext.layout.BorderLayout',
|
72
|
-
|
73
|
-
|
74
|
-
targetCls: Ext.baseCSSPrefix + 'border-layout-ct',
|
75
|
-
|
76
|
-
itemCls: [Ext.baseCSSPrefix + 'border-item', Ext.baseCSSPrefix + 'box-item'],
|
77
|
-
|
78
|
-
type: 'border',
|
79
|
-
|
80
|
-
/**
|
81
|
-
* @cfg {Boolean} split
|
82
|
-
* This configuration option is to be applied to the **child `items`** managed by this layout.
|
83
|
-
* Each region with `split:true` will get a {@link Ext.resizer.BorderSplitter Splitter} that
|
84
|
-
* allows for manual resizing of the container. Except for the `center` region.
|
85
|
-
*/
|
86
|
-
|
87
|
-
/**
|
88
|
-
* @cfg {Number/String/Object} padding
|
89
|
-
* Sets the padding to be applied to all child items managed by this layout.
|
90
|
-
*
|
91
|
-
* This property can be specified as a string containing space-separated, numeric
|
92
|
-
* padding values. The order of the sides associated with each value matches the way
|
93
|
-
* CSS processes padding values:
|
94
|
-
*
|
95
|
-
* - If there is only one value, it applies to all sides.
|
96
|
-
* - If there are two values, the top and bottom borders are set to the first value
|
97
|
-
* and the right and left are set to the second.
|
98
|
-
* - If there are three values, the top is set to the first value, the left and right
|
99
|
-
* are set to the second, and the bottom is set to the third.
|
100
|
-
* - If there are four values, they apply to the top, right, bottom, and left,
|
101
|
-
* respectively.
|
102
|
-
*
|
103
|
-
*/
|
104
|
-
padding: undefined,
|
105
|
-
|
106
|
-
percentageRe: /(\d+)%/,
|
107
|
-
|
108
|
-
/**
|
109
|
-
* Reused meta-data objects that describe axis properties.
|
110
|
-
* @private
|
111
|
-
*/
|
112
|
-
axisProps: {
|
113
|
-
horz: {
|
114
|
-
borderBegin: 'west',
|
115
|
-
borderEnd: 'east',
|
116
|
-
horizontal: true,
|
117
|
-
posProp: 'x',
|
118
|
-
sizeProp: 'width',
|
119
|
-
sizePropCap: 'Width'
|
120
|
-
},
|
121
|
-
vert: {
|
122
|
-
borderBegin: 'north',
|
123
|
-
borderEnd: 'south',
|
124
|
-
horizontal: false,
|
125
|
-
posProp: 'y',
|
126
|
-
sizeProp: 'height',
|
127
|
-
sizePropCap: 'Height'
|
128
|
-
}
|
129
|
-
},
|
130
|
-
|
131
|
-
// @private
|
132
|
-
centerRegion: null,
|
133
|
-
|
134
|
-
/**
|
135
|
-
* Maps from region name to collapseDirection for panel.
|
136
|
-
* @private
|
137
|
-
*/
|
138
|
-
collapseDirections: {
|
139
|
-
north: 'top',
|
140
|
-
south: 'bottom',
|
141
|
-
east: 'right',
|
142
|
-
west: 'left'
|
143
|
-
},
|
144
|
-
|
145
|
-
manageMargins: true,
|
146
|
-
|
147
|
-
panelCollapseAnimate: true,
|
148
|
-
|
149
|
-
panelCollapseMode: 'placeholder',
|
150
|
-
|
151
|
-
/**
|
152
|
-
* @cfg {Object} regionWeights
|
153
|
-
* The default weights to assign to regions in the border layout. These values are
|
154
|
-
* used when a region does not contain a `weight` property. This object must have
|
155
|
-
* properties for all regions ("north", "south", "east" and "west").
|
156
|
-
*
|
157
|
-
* **IMPORTANT:** Since this is an object, changing its properties will impact ALL
|
158
|
-
* instances of Border layout. If this is not desired, provide a replacement object as
|
159
|
-
* a config option instead:
|
160
|
-
*
|
161
|
-
* layout: {
|
162
|
-
* type: 'border',
|
163
|
-
* regionWeights: {
|
164
|
-
* west: 20,
|
165
|
-
* north: 10,
|
166
|
-
* south: -10,
|
167
|
-
* east: -20
|
168
|
-
* }
|
169
|
-
* }
|
170
|
-
*
|
171
|
-
* The region with the highest weight is assigned space from the border before other
|
172
|
-
* regions. Regions of equal weight are assigned space based on their position in the
|
173
|
-
* owner's items list (first come, first served).
|
174
|
-
*/
|
175
|
-
regionWeights: {
|
176
|
-
north: 20,
|
177
|
-
south: 10,
|
178
|
-
center: 0,
|
179
|
-
west: -10,
|
180
|
-
east: -20
|
181
|
-
},
|
182
|
-
|
183
|
-
//----------------------------------
|
184
|
-
// Layout processing
|
185
|
-
|
186
|
-
/**
|
187
|
-
* Creates the axis objects for the layout. These are only missing size information
|
188
|
-
* which is added during {@link #calculate}.
|
189
|
-
* @private
|
190
|
-
*/
|
191
|
-
beginAxis: function (ownerContext, regions, name) {
|
192
|
-
var me = this,
|
193
|
-
props = me.axisProps[name],
|
194
|
-
isVert = !props.horizontal,
|
195
|
-
sizeProp = props.sizeProp,
|
196
|
-
totalFlex = 0,
|
197
|
-
childItems = ownerContext.childItems,
|
198
|
-
length = childItems.length,
|
199
|
-
center, i, childContext, centerFlex, comp, region, match, size, type, target, placeholder;
|
200
|
-
|
201
|
-
for (i = 0; i < length; ++i) {
|
202
|
-
childContext = childItems[i];
|
203
|
-
comp = childContext.target;
|
204
|
-
|
205
|
-
childContext.layoutPos = {};
|
206
|
-
|
207
|
-
if (comp.region) {
|
208
|
-
childContext.region = region = comp.region;
|
209
|
-
|
210
|
-
childContext.isCenter = comp.isCenter;
|
211
|
-
childContext.isHorz = comp.isHorz;
|
212
|
-
childContext.isVert = comp.isVert;
|
213
|
-
|
214
|
-
childContext.weight = comp.weight || me.regionWeights[region] || 0;
|
215
|
-
regions[comp.id] = childContext;
|
216
|
-
|
217
|
-
if (comp.isCenter) {
|
218
|
-
center = childContext;
|
219
|
-
centerFlex = comp.flex;
|
220
|
-
ownerContext.centerRegion = center;
|
221
|
-
|
222
|
-
continue;
|
223
|
-
}
|
224
|
-
|
225
|
-
if (isVert !== childContext.isVert) {
|
226
|
-
continue;
|
227
|
-
}
|
228
|
-
|
229
|
-
// process regions "isVert ? north||south : east||center||west"
|
230
|
-
|
231
|
-
childContext.reverseWeighting = (region == props.borderEnd);
|
232
|
-
|
233
|
-
size = comp[sizeProp];
|
234
|
-
type = typeof size;
|
235
|
-
|
236
|
-
if (!comp.collapsed) {
|
237
|
-
if (type == 'string' && (match = me.percentageRe.exec(size))) {
|
238
|
-
childContext.percentage = parseInt(match[1], 10);
|
239
|
-
} else if (comp.flex) {
|
240
|
-
totalFlex += childContext.flex = comp.flex;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
|
246
|
-
// Special cases for a collapsed center region
|
247
|
-
if (center) {
|
248
|
-
target = center.target;
|
249
|
-
|
250
|
-
if (placeholder = target.placeholderFor) {
|
251
|
-
if (!centerFlex && isVert === placeholder.collapsedVertical()) {
|
252
|
-
// The center region is a placeholder, collapsed in this axis
|
253
|
-
centerFlex = 0;
|
254
|
-
center.collapseAxis = name;
|
255
|
-
}
|
256
|
-
} else if (target.collapsed && (isVert === target.collapsedVertical())) {
|
257
|
-
// The center region is a collapsed header, collapsed in this axis
|
258
|
-
centerFlex = 0;
|
259
|
-
center.collapseAxis = name;
|
260
|
-
}
|
261
|
-
}
|
262
|
-
|
263
|
-
if (centerFlex == null) {
|
264
|
-
// If we still don't have a center flex, default to 1
|
265
|
-
centerFlex = 1;
|
266
|
-
}
|
267
|
-
|
268
|
-
totalFlex += centerFlex;
|
269
|
-
|
270
|
-
return Ext.apply({
|
271
|
-
before : isVert ? 'top' : 'left',
|
272
|
-
totalFlex : totalFlex
|
273
|
-
}, props);
|
274
|
-
},
|
275
|
-
|
276
|
-
beginLayout: function (ownerContext) {
|
277
|
-
var me = this,
|
278
|
-
items = me.getLayoutItems(),
|
279
|
-
pad = me.padding,
|
280
|
-
type = typeof pad,
|
281
|
-
padOnContainer = false,
|
282
|
-
childContext, item, length, i, regions, collapseTarget;
|
283
|
-
|
284
|
-
// We sync the visibility state of splitters with their region:
|
285
|
-
if (pad) {
|
286
|
-
if (type == 'string' || type == 'number') {
|
287
|
-
pad = Ext.util.Format.parseBox(pad);
|
288
|
-
}
|
289
|
-
} else {
|
290
|
-
pad = ownerContext.getEl('getTargetEl').getPaddingInfo();
|
291
|
-
padOnContainer = true;
|
292
|
-
}
|
293
|
-
ownerContext.outerPad = pad;
|
294
|
-
ownerContext.padOnContainer = padOnContainer;
|
295
|
-
|
296
|
-
for (i = 0, length = items.length; i < length; ++i) {
|
297
|
-
item = items[i];
|
298
|
-
collapseTarget = me.getSplitterTarget(item);
|
299
|
-
|
300
|
-
if (collapseTarget && item.hidden !== collapseTarget.hidden) {
|
301
|
-
if (item.hidden) {
|
302
|
-
item.show();
|
303
|
-
} else {
|
304
|
-
item.hide();
|
305
|
-
}
|
306
|
-
}
|
307
|
-
}
|
308
|
-
|
309
|
-
// The above synchronized visibility of splitters with their regions, so we need
|
310
|
-
// to make this call after that so that childItems and visibleItems are correct:
|
311
|
-
//
|
312
|
-
me.callParent(arguments);
|
313
|
-
|
314
|
-
items = ownerContext.childItems;
|
315
|
-
length = items.length;
|
316
|
-
regions = {};
|
317
|
-
|
318
|
-
ownerContext.borderAxisHorz = me.beginAxis(ownerContext, regions, 'horz');
|
319
|
-
ownerContext.borderAxisVert = me.beginAxis(ownerContext, regions, 'vert');
|
320
|
-
|
321
|
-
// Now that weights are assigned to the region's contextItems, we assign those
|
322
|
-
// same weights to the contextItem for the splitters. We also cross link the
|
323
|
-
// contextItems for the collapseTarget and its splitter.
|
324
|
-
for (i = 0; i < length; ++i) {
|
325
|
-
childContext = items[i];
|
326
|
-
collapseTarget = me.getSplitterTarget(childContext.target);
|
327
|
-
|
328
|
-
if (collapseTarget) { // if (splitter)
|
329
|
-
childContext.collapseTarget = collapseTarget = regions[collapseTarget.id];
|
330
|
-
childContext.weight = collapseTarget.weight;
|
331
|
-
childContext.reverseWeighting = collapseTarget.reverseWeighting;
|
332
|
-
collapseTarget.splitter = childContext;
|
333
|
-
childContext.isHorz = collapseTarget.isHorz;
|
334
|
-
childContext.isVert = collapseTarget.isVert;
|
335
|
-
}
|
336
|
-
}
|
337
|
-
|
338
|
-
// Now we want to sort the childItems by their weight.
|
339
|
-
me.sortWeightedItems(items, 'reverseWeighting');
|
340
|
-
me.setupSplitterNeighbors(items);
|
341
|
-
},
|
342
|
-
|
343
|
-
calculate: function (ownerContext) {
|
344
|
-
var me = this,
|
345
|
-
containerSize = me.getContainerSize(ownerContext),
|
346
|
-
childItems = ownerContext.childItems,
|
347
|
-
length = childItems.length,
|
348
|
-
horz = ownerContext.borderAxisHorz,
|
349
|
-
vert = ownerContext.borderAxisVert,
|
350
|
-
pad = ownerContext.outerPad,
|
351
|
-
padOnContainer = ownerContext.padOnContainer,
|
352
|
-
i, childContext, childMargins, size, horzPercentTotal, vertPercentTotal;
|
353
|
-
|
354
|
-
horz.begin = pad.left;
|
355
|
-
vert.begin = pad.top;
|
356
|
-
// If the padding is already on the container we need to add it to the space
|
357
|
-
// If not on the container, it's "virtual" padding.
|
358
|
-
horzPercentTotal = horz.end = horz.flexSpace = containerSize.width + (padOnContainer ? pad.left : -pad.right);
|
359
|
-
vertPercentTotal = vert.end = vert.flexSpace = containerSize.height + (padOnContainer ? pad.top : -pad.bottom);
|
360
|
-
|
361
|
-
// Reduce flexSpace on each axis by the fixed/auto sized dimensions of items that
|
362
|
-
// aren't flexed along that axis.
|
363
|
-
for (i = 0; i < length; ++i) {
|
364
|
-
childContext = childItems[i];
|
365
|
-
childMargins = childContext.getMarginInfo();
|
366
|
-
|
367
|
-
// Margins are always fixed size and must be removed from the space used for percentages and flexes
|
368
|
-
if (childContext.isHorz || childContext.isCenter) {
|
369
|
-
horz.addUnflexed(childMargins.width);
|
370
|
-
horzPercentTotal -= childMargins.width;
|
371
|
-
}
|
372
|
-
|
373
|
-
if (childContext.isVert || childContext.isCenter) {
|
374
|
-
vert.addUnflexed(childMargins.height);
|
375
|
-
vertPercentTotal -= childMargins.height;
|
376
|
-
}
|
377
|
-
|
378
|
-
// Fixed size components must have their sizes removed from the space used for flex
|
379
|
-
if (!childContext.flex && !childContext.percentage) {
|
380
|
-
if (childContext.isHorz || (childContext.isCenter && childContext.collapseAxis === 'horz')) {
|
381
|
-
size = childContext.getProp('width');
|
382
|
-
|
383
|
-
horz.addUnflexed(size);
|
384
|
-
|
385
|
-
// splitters should not count towards percentages
|
386
|
-
if (childContext.collapseTarget) {
|
387
|
-
horzPercentTotal -= size;
|
388
|
-
}
|
389
|
-
} else if (childContext.isVert || (childContext.isCenter && childContext.collapseAxis === 'vert')) {
|
390
|
-
size = childContext.getProp('height');
|
391
|
-
|
392
|
-
vert.addUnflexed(size);
|
393
|
-
|
394
|
-
// splitters should not count towards percentages
|
395
|
-
if (childContext.collapseTarget) {
|
396
|
-
vertPercentTotal -= size;
|
397
|
-
}
|
398
|
-
}
|
399
|
-
// else ignore center since it is fully flexed
|
400
|
-
}
|
401
|
-
}
|
402
|
-
|
403
|
-
for (i = 0; i < length; ++i) {
|
404
|
-
childContext = childItems[i];
|
405
|
-
childMargins = childContext.getMarginInfo();
|
406
|
-
|
407
|
-
// Calculate the percentage sizes. After this calculation percentages are very similar to fixed sizes
|
408
|
-
if (childContext.percentage) {
|
409
|
-
if (childContext.isHorz) {
|
410
|
-
size = Math.ceil(horzPercentTotal * childContext.percentage / 100);
|
411
|
-
size = childContext.setWidth(size);
|
412
|
-
horz.addUnflexed(size);
|
413
|
-
} else if (childContext.isVert) {
|
414
|
-
size = Math.ceil(vertPercentTotal * childContext.percentage / 100);
|
415
|
-
size = childContext.setHeight(size);
|
416
|
-
vert.addUnflexed(size);
|
417
|
-
}
|
418
|
-
// center shouldn't have a percentage but if it does it should be ignored
|
419
|
-
}
|
420
|
-
}
|
421
|
-
|
422
|
-
|
423
|
-
// If we haven't gotten sizes for all unflexed dimensions on an axis, the flexSpace
|
424
|
-
// will be NaN so we won't be calculating flexed dimensions until that is resolved.
|
425
|
-
|
426
|
-
for (i = 0; i < length; ++i) {
|
427
|
-
childContext = childItems[i];
|
428
|
-
|
429
|
-
if (!childContext.isCenter) {
|
430
|
-
me.calculateChildAxis(childContext, horz);
|
431
|
-
me.calculateChildAxis(childContext, vert);
|
432
|
-
}
|
433
|
-
}
|
434
|
-
|
435
|
-
// Once all items are placed, the final size of the center can be determined. If we
|
436
|
-
// can determine both width and height, we are done. We use '+' instead of '&&' to
|
437
|
-
// avoid short-circuiting (we want to call both):
|
438
|
-
if (me.finishAxis(ownerContext, vert) + me.finishAxis(ownerContext, horz) < 2) {
|
439
|
-
me.done = false;
|
440
|
-
} else {
|
441
|
-
// Size information is published as we place regions but position is hard to do
|
442
|
-
// that way (while avoiding published multiple times) so we publish all the
|
443
|
-
// positions at the end.
|
444
|
-
me.finishPositions(childItems);
|
445
|
-
}
|
446
|
-
},
|
447
|
-
|
448
|
-
/**
|
449
|
-
* Performs the calculations for a region on a specified axis.
|
450
|
-
* @private
|
451
|
-
*/
|
452
|
-
calculateChildAxis: function (childContext, axis) {
|
453
|
-
var collapseTarget = childContext.collapseTarget,
|
454
|
-
setSizeMethod = 'set' + axis.sizePropCap,
|
455
|
-
sizeProp = axis.sizeProp,
|
456
|
-
childMarginSize = childContext.getMarginInfo()[sizeProp],
|
457
|
-
region, isBegin, flex, pos, size;
|
458
|
-
|
459
|
-
if (collapseTarget) { // if (splitter)
|
460
|
-
region = collapseTarget.region;
|
461
|
-
} else {
|
462
|
-
region = childContext.region;
|
463
|
-
flex = childContext.flex;
|
464
|
-
}
|
465
|
-
|
466
|
-
isBegin = region == axis.borderBegin;
|
467
|
-
|
468
|
-
if (!isBegin && region != axis.borderEnd) {
|
469
|
-
// a north/south region on the horizontal axis or an east/west region on the
|
470
|
-
// vertical axis: stretch to fill remaining space:
|
471
|
-
childContext[setSizeMethod](axis.end - axis.begin - childMarginSize);
|
472
|
-
pos = axis.begin;
|
473
|
-
} else {
|
474
|
-
if (flex) {
|
475
|
-
size = Math.ceil(axis.flexSpace * (flex / axis.totalFlex));
|
476
|
-
size = childContext[setSizeMethod](size);
|
477
|
-
} else if (childContext.percentage) {
|
478
|
-
// Like getProp but without registering a dependency - we calculated the size, we don't depend on it
|
479
|
-
size = childContext.peek(sizeProp);
|
480
|
-
} else {
|
481
|
-
size = childContext.getProp(sizeProp);
|
482
|
-
}
|
483
|
-
|
484
|
-
size += childMarginSize;
|
485
|
-
|
486
|
-
if (isBegin) {
|
487
|
-
pos = axis.begin;
|
488
|
-
axis.begin += size;
|
489
|
-
} else {
|
490
|
-
axis.end = pos = axis.end - size;
|
491
|
-
}
|
492
|
-
}
|
493
|
-
|
494
|
-
childContext.layoutPos[axis.posProp] = pos;
|
495
|
-
},
|
496
|
-
|
497
|
-
/**
|
498
|
-
* Finishes the calculations on an axis. This basically just assigns the remaining
|
499
|
-
* space to the center region.
|
500
|
-
* @private
|
501
|
-
*/
|
502
|
-
finishAxis: function (ownerContext, axis) {
|
503
|
-
var size = axis.end - axis.begin,
|
504
|
-
center = ownerContext.centerRegion;
|
505
|
-
|
506
|
-
if (center) {
|
507
|
-
center['set' + axis.sizePropCap](size - center.getMarginInfo()[axis.sizeProp]);
|
508
|
-
center.layoutPos[axis.posProp] = axis.begin;
|
509
|
-
}
|
510
|
-
|
511
|
-
return Ext.isNumber(size) ? 1 : 0;
|
512
|
-
},
|
513
|
-
|
514
|
-
/**
|
515
|
-
* Finishes by setting the positions on the child items.
|
516
|
-
* @private
|
517
|
-
*/
|
518
|
-
finishPositions: function (childItems) {
|
519
|
-
var length = childItems.length,
|
520
|
-
index, childContext;
|
521
|
-
|
522
|
-
for (index = 0; index < length; ++index) {
|
523
|
-
childContext = childItems[index];
|
524
|
-
|
525
|
-
childContext.setProp('x', childContext.layoutPos.x + childContext.marginInfo.left);
|
526
|
-
childContext.setProp('y', childContext.layoutPos.y + childContext.marginInfo.top);
|
527
|
-
}
|
528
|
-
},
|
529
|
-
|
530
|
-
getPlaceholder: function (comp) {
|
531
|
-
return comp.getPlaceholder && comp.getPlaceholder();
|
532
|
-
},
|
533
|
-
|
534
|
-
getSplitterTarget: function (splitter) {
|
535
|
-
var collapseTarget = splitter.collapseTarget;
|
536
|
-
|
537
|
-
if (collapseTarget && collapseTarget.collapsed) {
|
538
|
-
return collapseTarget.placeholder || collapseTarget;
|
539
|
-
}
|
540
|
-
|
541
|
-
return collapseTarget;
|
542
|
-
},
|
543
|
-
|
544
|
-
isItemBoxParent: function (itemContext) {
|
545
|
-
return true;
|
546
|
-
},
|
547
|
-
|
548
|
-
isItemShrinkWrap: function (item) {
|
549
|
-
return true;
|
550
|
-
},
|
551
|
-
|
552
|
-
//----------------------------------
|
553
|
-
// Event handlers
|
554
|
-
|
555
|
-
/**
|
556
|
-
* Inserts the splitter for a given region. A reference to the splitter is also stored
|
557
|
-
* on the component as "splitter".
|
558
|
-
* @private
|
559
|
-
*/
|
560
|
-
insertSplitter: function (item, index) {
|
561
|
-
var region = item.region,
|
562
|
-
splitter = {
|
563
|
-
xtype: 'bordersplitter',
|
564
|
-
collapseTarget: item,
|
565
|
-
id: item.id + '-splitter',
|
566
|
-
hidden: !!item.hidden
|
567
|
-
},
|
568
|
-
at = index + ((region == 'south' || region == 'east') ? 0 : 1);
|
569
|
-
|
570
|
-
// remove the default fixed width or height depending on orientation:
|
571
|
-
if (item.isHorz) {
|
572
|
-
splitter.height = null;
|
573
|
-
} else {
|
574
|
-
splitter.width = null;
|
575
|
-
}
|
576
|
-
|
577
|
-
if (item.collapseMode == 'mini') {
|
578
|
-
splitter.collapsedCls = item.collapsedCls;
|
579
|
-
}
|
580
|
-
|
581
|
-
item.splitter = this.owner.add(at, splitter);
|
582
|
-
},
|
583
|
-
|
584
|
-
/**
|
585
|
-
* Called when a region (actually when any component) is added to the container. The
|
586
|
-
* region is decorated with some helpful properties (isCenter, isHorz, isVert) and its
|
587
|
-
* splitter is added if its "split" property is true.
|
588
|
-
* @private
|
589
|
-
*/
|
590
|
-
onAdd: function (item, index) {
|
591
|
-
var me = this,
|
592
|
-
placeholderFor = item.placeholderFor,
|
593
|
-
region = item.region;
|
594
|
-
|
595
|
-
me.callParent(arguments);
|
596
|
-
|
597
|
-
if (region) {
|
598
|
-
Ext.apply(item, me.regionFlags[region]);
|
599
|
-
|
600
|
-
if (region == 'center') {
|
601
|
-
//<debug>
|
602
|
-
if (me.centerRegion) {
|
603
|
-
Ext.Error.raise("Cannot have multiple center regions in a BorderLayout.");
|
604
|
-
}
|
605
|
-
//</debug>
|
606
|
-
me.centerRegion = item;
|
607
|
-
} else {
|
608
|
-
item.collapseDirection = this.collapseDirections[region];
|
609
|
-
|
610
|
-
if (item.split && (item.isHorz || item.isVert)) {
|
611
|
-
me.insertSplitter(item, index);
|
612
|
-
}
|
613
|
-
}
|
614
|
-
|
615
|
-
if (!item.hasOwnProperty('collapseMode')) {
|
616
|
-
item.collapseMode = me.panelCollapseMode;
|
617
|
-
}
|
618
|
-
|
619
|
-
if (!item.hasOwnProperty('animCollapse')) {
|
620
|
-
if (item.collapseMode != 'placeholder') {
|
621
|
-
// other collapse modes do not animate nicely in a border layout, so
|
622
|
-
// default them to off:
|
623
|
-
item.animCollapse = false;
|
624
|
-
} else {
|
625
|
-
item.animCollapse = me.panelCollapseAnimate;
|
626
|
-
}
|
627
|
-
}
|
628
|
-
} else if (placeholderFor) {
|
629
|
-
Ext.apply(item, me.regionFlags[placeholderFor.region]);
|
630
|
-
item.region = placeholderFor.region;
|
631
|
-
item.weight = placeholderFor.weight;
|
632
|
-
}
|
633
|
-
},
|
634
|
-
|
635
|
-
onDestroy: function() {
|
636
|
-
this.centerRegion = null;
|
637
|
-
this.callParent();
|
638
|
-
},
|
639
|
-
|
640
|
-
onRemove: function (item) {
|
641
|
-
var me = this,
|
642
|
-
region = item.region,
|
643
|
-
splitter = item.splitter;
|
644
|
-
|
645
|
-
if (region) {
|
646
|
-
if (item.isCenter) {
|
647
|
-
me.centerRegion = null;
|
648
|
-
}
|
649
|
-
|
650
|
-
delete item.isCenter;
|
651
|
-
delete item.isHorz;
|
652
|
-
delete item.isVert;
|
653
|
-
|
654
|
-
if (splitter) {
|
655
|
-
me.owner.doRemove(splitter, true); // avoid another layout
|
656
|
-
delete item.splitter;
|
657
|
-
}
|
658
|
-
}
|
659
|
-
|
660
|
-
me.callParent(arguments);
|
661
|
-
},
|
662
|
-
|
663
|
-
//----------------------------------
|
664
|
-
// Misc
|
665
|
-
|
666
|
-
regionFlags: {
|
667
|
-
center: { isCenter: true, isHorz: false, isVert: false },
|
668
|
-
|
669
|
-
north: { isCenter: false, isHorz: false, isVert: true },
|
670
|
-
south: { isCenter: false, isHorz: false, isVert: true },
|
671
|
-
|
672
|
-
west: { isCenter: false, isHorz: true, isVert: false },
|
673
|
-
east: { isCenter: false, isHorz: true, isVert: false }
|
674
|
-
},
|
675
|
-
|
676
|
-
setupSplitterNeighbors: function (items) {
|
677
|
-
var edgeRegions = {
|
678
|
-
//north: null,
|
679
|
-
//south: null,
|
680
|
-
//east: null,
|
681
|
-
//west: null
|
682
|
-
},
|
683
|
-
length = items.length,
|
684
|
-
touchedRegions = this.touchedRegions,
|
685
|
-
i, j, center, count, edge, comp, region, splitter, touched;
|
686
|
-
|
687
|
-
for (i = 0; i < length; ++i) {
|
688
|
-
comp = items[i].target;
|
689
|
-
region = comp.region;
|
690
|
-
|
691
|
-
if (comp.isCenter) {
|
692
|
-
center = comp;
|
693
|
-
} else if (region) {
|
694
|
-
touched = touchedRegions[region];
|
695
|
-
|
696
|
-
for (j = 0, count = touched.length; j < count; ++j) {
|
697
|
-
edge = edgeRegions[touched[j]];
|
698
|
-
if (edge) {
|
699
|
-
edge.neighbors.push(comp);
|
700
|
-
}
|
701
|
-
}
|
702
|
-
|
703
|
-
if (comp.placeholderFor) {
|
704
|
-
// placeholder, so grab the splitter for the actual panel
|
705
|
-
splitter = comp.placeholderFor.splitter;
|
706
|
-
} else {
|
707
|
-
splitter = comp.splitter;
|
708
|
-
}
|
709
|
-
if (splitter) {
|
710
|
-
splitter.neighbors = [];
|
711
|
-
}
|
712
|
-
|
713
|
-
edgeRegions[region] = splitter;
|
714
|
-
}
|
715
|
-
}
|
716
|
-
|
717
|
-
if (center) {
|
718
|
-
touched = touchedRegions.center;
|
719
|
-
|
720
|
-
for (j = 0, count = touched.length; j < count; ++j) {
|
721
|
-
edge = edgeRegions[touched[j]];
|
722
|
-
if (edge) {
|
723
|
-
edge.neighbors.push(center);
|
724
|
-
}
|
725
|
-
}
|
726
|
-
}
|
727
|
-
},
|
728
|
-
|
729
|
-
/**
|
730
|
-
* Lists the regions that would consider an interior region a neighbor. For example,
|
731
|
-
* a north region would consider an east or west region its neighbords (as well as
|
732
|
-
* an inner north region).
|
733
|
-
* @private
|
734
|
-
*/
|
735
|
-
touchedRegions: {
|
736
|
-
center: [ 'north', 'south', 'east', 'west' ],
|
737
|
-
|
738
|
-
north: [ 'north', 'east', 'west' ],
|
739
|
-
south: [ 'south', 'east', 'west' ],
|
740
|
-
east: [ 'east', 'north', 'south' ],
|
741
|
-
west: [ 'west', 'north', 'south' ]
|
742
|
-
},
|
743
|
-
|
744
|
-
sizePolicies: {
|
745
|
-
vert: {
|
746
|
-
setsWidth: 1,
|
747
|
-
setsHeight: 0
|
748
|
-
},
|
749
|
-
horz: {
|
750
|
-
setsWidth: 0,
|
751
|
-
setsHeight: 1
|
752
|
-
},
|
753
|
-
flexAll: {
|
754
|
-
setsWidth: 1,
|
755
|
-
setsHeight: 1
|
756
|
-
}
|
757
|
-
},
|
758
|
-
|
759
|
-
getItemSizePolicy: function (item) {
|
760
|
-
var me = this,
|
761
|
-
policies = this.sizePolicies,
|
762
|
-
collapseTarget, size, policy, placeholderFor;
|
763
|
-
|
764
|
-
if (item.isCenter) {
|
765
|
-
placeholderFor = item.placeholderFor;
|
766
|
-
|
767
|
-
if (placeholderFor) {
|
768
|
-
if (placeholderFor.collapsedVertical()) {
|
769
|
-
return policies.vert;
|
770
|
-
}
|
771
|
-
return policies.horz;
|
772
|
-
}
|
773
|
-
if (item.collapsed) {
|
774
|
-
if (item.collapsedVertical()) {
|
775
|
-
return policies.vert;
|
776
|
-
}
|
777
|
-
return policies.horz;
|
778
|
-
}
|
779
|
-
return policies.flexAll;
|
780
|
-
}
|
781
|
-
|
782
|
-
collapseTarget = item.collapseTarget;
|
783
|
-
|
784
|
-
if (collapseTarget) {
|
785
|
-
return collapseTarget.isVert ? policies.vert : policies.horz;
|
786
|
-
}
|
787
|
-
|
788
|
-
if (item.region) {
|
789
|
-
if (item.isVert) {
|
790
|
-
size = item.height;
|
791
|
-
policy = policies.vert;
|
792
|
-
} else {
|
793
|
-
size = item.width;
|
794
|
-
policy = policies.horz;
|
795
|
-
}
|
796
|
-
|
797
|
-
if (item.flex || (typeof size == 'string' && me.percentageRe.test(size))) {
|
798
|
-
return policies.flexAll;
|
799
|
-
}
|
800
|
-
|
801
|
-
return policy;
|
802
|
-
}
|
803
|
-
|
804
|
-
return me.autoSizePolicy;
|
805
|
-
}
|
806
|
-
}, function () {
|
807
|
-
var methods = {
|
808
|
-
addUnflexed: function (px) {
|
809
|
-
this.flexSpace = Math.max(this.flexSpace - px, 0);
|
810
|
-
}
|
811
|
-
},
|
812
|
-
props = this.prototype.axisProps;
|
813
|
-
|
814
|
-
Ext.apply(props.horz, methods);
|
815
|
-
Ext.apply(props.vert, methods);
|
816
|
-
});
|