Skip to content

Commit

Permalink
Fixed tableview styling on map detail page, and fixed issue with reop…
Browse files Browse the repository at this point in the history
…ening map detail view from back button.
  • Loading branch information
jeffbcross committed May 26, 2012
1 parent 170d08a commit 434b5f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Resources/js/style.js
Expand Up @@ -661,7 +661,7 @@ exports.updateStyles = function () {
backgroundDisabledImage: '/images/secondarybarbtnbg_press.png'
};
exports.mapDetailView = {
top: defaults.TITLEBAR_HEIGHT+'dp'
top: defaults.TITLEBAR_HEIGHT + defaults.TITLEBAR_HEIGHT +'dp'
};
exports.mapDetailTopView= {
top: defaults.TITLEBAR_HEIGHT+'dp',
Expand Down
18 changes: 13 additions & 5 deletions Resources/js/views/MapWindowView.js
Expand Up @@ -161,11 +161,16 @@ exports.goBack = function (){
Ti.API.debug('Go back in MapWindowView');
Ti.API.debug(JSON.stringify(activityStack));
//Let's clear the current view in the activity stack
activityStack.pop();
var _prev = activityStack.pop();
Ti.API.debug(JSON.stringify(_prev));

exports.doSetView(_prev.view, _prev.model);
if (activityStack.length > 1) {
activityStack.pop();
var _prev = activityStack.pop();
Ti.API.debug(JSON.stringify(_prev));

exports.doSetView(_prev.view, _prev.model);
}
else {
Ti.API.debug('Nothing to go back to.');
}
};

exports.plotPoints = function (points) {
Expand Down Expand Up @@ -436,6 +441,9 @@ exports.doSetView = function (newView, viewModel) {
case exports.views.FAVORITES_BROWSING:
exports.openFavoritesBrowsingView();
break;
case exports.views.LOCATION_DETAIL:
exports.openDetailView(viewModel);
break;
case exports.views.FAVORITES_MAP:
exports.openFavoritesMapView();
break;
Expand Down

0 comments on commit 434b5f0

Please sign in to comment.