57 Commits

Author SHA1 Message Date
2f8bce74fb Fixed Issue #1232: WrapLayout crashes when itemWidth value is too high. 2016-02-05 15:51:50 +02:00
1e0f130b38 Merge pull request #1430 from NativeScript/gatanasov/lazy-require-fixes
Revisit lazy require routine
2016-02-01 16:54:31 +02:00
698345f171 Register ProxyViewContainer children with parent layout.
- Fixes a crash when used in a GridLayout on iOS since the layout needs to be
notified of any layout children changes.
- Adds a _parentChanged hook for all views.
2016-01-28 18:27:31 +02:00
a2fd4d1c9c Merge pull request #1416 from NativeScript/feature/proxy-view-container
Feature/proxy view container
2016-01-26 13:31:53 +02:00
6dc971c1ca Merge pull request #1422 from NativeScript/feature/grid-set-rows-cols
Call removeRows/Columns in set rows and columns methods
2016-01-26 10:31:38 +02:00
56f1aaa795 Do not use lazy requires where not needed. 2016-01-25 16:33:18 +02:00
216cfb11de Fix: bugs caught with tests 2016-01-25 11:30:37 +02:00
eac95156d1 Proxy view container 2016-01-25 11:30:36 +02:00
62d85b0dc0 Merge pull request #1407 from NativeScript/atanasovg/snapshot-refactorings
Atanasovg/snapshot refactorings
2016-01-25 10:29:24 +02:00
ee8dfb3b72 Call removeRows/Columns in set rows and columns methods 2016-01-22 18:13:16 +02:00
68cdff85bd GridLayout now calls virtual methods when rows/columns are set through XML.
Added test.
Improved code readability.
2016-01-21 13:55:32 +02:00
fbc612610f Snapshot refactorings, which mainly wraps Android extends within inner functions so that they are evaluated at runtime, when needed. Also some refactoring preventing circular requires. 2016-01-20 10:22:08 +02:00
20f8f8a852 Fixed bug in GridLayout
Added tests for GridLayout
2016-01-19 10:54:21 +02:00
3d97499171 Merge pull request #1368 from NativeScript/feature/grid-separator
Accept whitespace separators in grid rows and cols properties
2016-01-14 10:26:15 +02:00
246758cb12 Fixed wrap-layout
Added more tests
2016-01-13 15:16:00 +02:00
e5351786b7 Accept whitespace separators in grid rows and cols properties 2016-01-13 14:03:33 +02:00
18f074067a Fixed enum value name 2016-01-11 12:37:48 +02:00
074ac89871 imports improved 2015-12-17 14:53:46 +02:00
1dbb742908 Implemented percent support for width, height and margins 2015-12-15 14:36:27 +02:00
070b01c544 Remove UTF-8 BOM's from package.json files 2015-12-01 15:37:14 +02:00
70041bd999 Don't expose platform types in public d.ts files.
Use any. Add a comment with the real type.
2015-10-30 17:17:29 +02:00
219c0c8033 Private methods of gird prefixed with _ 2015-10-29 16:26:47 +02:00
619c2fe665 global.android replaced with platform.device.os === platform.platformNames.android 2015-10-16 09:20:46 +03:00
44e4296d80 Merge pull request #931 from NativeScript/vertical-alignment-middle
vertical-alignment middle support added
2015-10-15 10:31:16 +03:00
19b03bbbb9 vertical-alignment middle support added 2015-10-14 09:42:29 +03:00
e127c7ef27 Fix GridLayout desiredSize when not stretched.
Fix showModal Page size method for Android
Fix showModal Page actionBar is now hidden
2015-10-09 16:54:08 +03:00
0ecb5d4dcd Implement Page background option to span under status bar (iOS only for the moment) 2015-10-06 14:35:59 +03:00
cfda63d42b changing != to !== 2015-10-01 10:42:06 +03:00
dad1510ce9 Adding voiid return statements 2015-10-01 10:42:04 +03:00
69e651bb43 Adding void return statements 2015-10-01 10:38:24 +03:00
7d948265f3 Adding removeColumns() and removeRows() to GridLayout 2015-10-01 10:34:30 +03:00
e79fd51ce4 adding removeChildren() for layout and fixing comment typos 2015-10-01 10:28:27 +03:00
77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00
958d6b41f0 Move layout special properties sets out of the component builder.
Setters registered by the respective modules on import.
2015-09-10 19:18:11 +03:00
b082cb1c99 Fix for applying style attribute on Grid 2015-09-04 13:48:46 +03:00
5b9777d054 Fixed issue #360. 2015-08-28 15:43:19 +03:00
6a6f7fcf92 Fix ListView module to check for layoutBase instead of Layout
Remove some unnecessary traces
2015-08-11 15:28:39 +03:00
3f4cf47578 Fix ItemSpec length is rounded 2015-08-10 14:30:46 +03:00
5322dd19b2 Fix Image source property to have None metadata for android - no need for layout invalidation from JS.
ClipToBounds implementation added back.
Optimization in style.ts to set native properties at once.
Fix height of CommonLayoutParameters.
2015-08-03 18:18:42 +03:00
4c03cddbd6 Fix tslint error
Change module-merge to use the global merge function
2015-08-03 13:49:22 +03:00
8d8cea103f Fix wrap-layout implementation for iOS
Fix layout-helper so that unit-tests can work again
2015-08-03 13:49:14 +03:00
e58506563a Fix WrapLayout
Fix ScrollView
Fix Stylers.android
Remove some method from View class
Fix layout-helper test views
Fix all android failing tests
Remove onLayout on Button and TextBase
2015-08-03 13:49:11 +03:00
bd50fb5550 Fixed several unit-tests 2015-08-03 13:49:08 +03:00
41168d3782 Layouts are now implemented natively for Android. 2015-08-03 13:49:03 +03:00
422cc37d48 Layout child API extensions
- Layout.insertChild(atIndex, child)
- Layout.getChildIndex(child): number
2015-08-03 13:49:00 +03:00
805722a5b7 default value fixed 2015-08-03 13:48:56 +03:00
7516ac6ab3 ApplyXmlAttributes implementation fixed 2015-08-03 13:48:54 +03:00
1761fd79f0 Fix tslint error 2015-08-03 13:48:49 +03:00
0da2f297fd Fix tslint errors 2015-08-03 13:48:44 +03:00
0ad198165c Layouts are now implemented natively for Android. 2015-08-03 13:48:41 +03:00