Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 48F39200C60 for ; Mon, 24 Apr 2017 22:24:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47B6F160B93; Mon, 24 Apr 2017 20:24:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6C3A8160B99 for ; Mon, 24 Apr 2017 22:24:44 +0200 (CEST) Received: (qmail 71592 invoked by uid 500); 24 Apr 2017 20:24:43 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 71573 invoked by uid 99); 24 Apr 2017 20:24:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2017 20:24:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5F285E0EE6; Mon, 24 Apr 2017 20:24:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pent@apache.org To: commits@flex.apache.org Date: Mon, 24 Apr 2017 20:24:44 -0000 Message-Id: <653bf6eb3f2d42aca171af42de2bb047@git.apache.org> In-Reply-To: <20b1a4ea65a548cc9d3a92a6c9f4e1b0@git.apache.org> References: <20b1a4ea65a548cc9d3a92a6c9f4e1b0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/8] git commit: [flex-asjs] [refs/heads/dual] - Updated MapSearch example. archived-at: Mon, 24 Apr 2017 20:24:45 -0000 Updated MapSearch example. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/37573389 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/37573389 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/37573389 Branch: refs/heads/dual Commit: 37573389f7431c8acf09743a710bab450d6bef23 Parents: 1ae959d Author: Peter Ent Authored: Tue Apr 18 15:01:43 2017 -0400 Committer: Peter Ent Committed: Tue Apr 18 15:01:43 2017 -0400 ---------------------------------------------------------------------- .../MapSearch/src/main/flex/MyInitialView.mxml | 81 ++++++++++++-------- .../flexjs/MapSearch/src/main/flex/NoLayout.as | 26 +++++++ .../MapSearch/src/main/flex/models/MyModel.as | 5 +- 3 files changed, 78 insertions(+), 34 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37573389/examples/flexjs/MapSearch/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/MapSearch/src/main/flex/MyInitialView.mxml b/examples/flexjs/MapSearch/src/main/flex/MyInitialView.mxml index 54ec4a2..433057e 100644 --- a/examples/flexjs/MapSearch/src/main/flex/MyInitialView.mxml +++ b/examples/flexjs/MapSearch/src/main/flex/MyInitialView.mxml @@ -122,14 +122,36 @@ limitations under the License. @namespace basic "library://ns.apache.org/flexjs/basic"; + + .TopContainer { + backgroundColor: darkgray; + margin-top: 20px; + margin-left: auto; + margin-right: auto; + border: 1px solid #555555; + } + + .InnerBox { + padding: 10px; + flex-grow: 0; + } + + .MainMap { + flex-grow: 2; + } + + .Results { + backgroundColor: lightgray; + flex-grow: 1; + border: 1px solid #555555; + margin-left: 10px; + margin-right: 10px; + margin-bottom: 10px; + } .FormLabel { font-weight: bold; font-size: 12; - padding-left: 20px; - padding-right: 20px; - padding-top: 20px; - padding-bottom: 20px; height: 22px; } @@ -147,56 +169,51 @@ limitations under the License. .FormInput { font-weight: normal; - font-size: 12; - color: #0000DE; - padding: 0px; - height: 20px; - } - - .InnerBox { - margin-top: 11px; - margin-bottom: 10px; + font-size: 14; + margin-left: 5px; + margin-right: 5px; } + - - + - + - + - + - + + - - + + - + - + - + - + - + - + - + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37573389/examples/flexjs/MapSearch/src/main/flex/NoLayout.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MapSearch/src/main/flex/NoLayout.as b/examples/flexjs/MapSearch/src/main/flex/NoLayout.as new file mode 100644 index 0000000..86ca2b7 --- /dev/null +++ b/examples/flexjs/MapSearch/src/main/flex/NoLayout.as @@ -0,0 +1,26 @@ +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package +{ + import org.apache.flex.core.LayoutBase; + + /** + * Provides no layout allowing CSS to control everything + */ + + public class NoLayout extends LayoutBase + { + public function NoLayout() + { + super(); + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37573389/examples/flexjs/MapSearch/src/main/flex/models/MyModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/MapSearch/src/main/flex/models/MyModel.as b/examples/flexjs/MapSearch/src/main/flex/models/MyModel.as index 8a1e8fd..61ad036 100644 --- a/examples/flexjs/MapSearch/src/main/flex/models/MyModel.as +++ b/examples/flexjs/MapSearch/src/main/flex/models/MyModel.as @@ -37,7 +37,7 @@ package models _strand = value; } - private var _cities:Array = ["Sydney", "NYC", "Mexico City", "London", "Rio de Janeiro"]; + private var _cities:Array = ["San Jose, CA", "Sydney", "NYC", "Mexico City", "London", "Rio de Janeiro"]; [Bindable] public function get cities():Array @@ -45,7 +45,8 @@ package models return _cities; } - private var _coordinates:Array = [{lat:-33.86, lng:151.211}, + private var _coordinates:Array = [{lat:-37.3, lng: -121.5}, + {lat:-33.86, lng:151.211}, {lat:40.712, lng:-74.0059}, {lat:19.26, lng:-99.03}, {lat:51.4, lng:-0.1},