You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
Noticed an issue when you try and use the social activityPopover with a button in the navbar and the navbar sits within the slide menu component. Works fine on the iPhone version but doesn't show the popover on the iPad version.
Is this a bug? I can work round it by placing the share button in the window not on the toolbar but I would love to make the iphone and ipad apps consistent.
Issue explained using the code example below: (taken from app.js in example)...
When you click on the navbar button it shows nothing... no error...
When you click on the button within the window it shows the popover...
Running 3.5.1GA - iPad - iOS 8.3
Version 1.8 of dk.napp.social
Version 1.4.3 of dk.napp.slidemenu
var Social = require('dk.napp.social');
Ti.API.info("module is => " + Social);
////////////////////////////////////////////////
// CENTER MAIN WINDOW
var navController = createCenterNavWindow();
////////////////////////////////////////////////
////////////////////////////////////////////////
// RIGHT WINDOW
var winRight = Ti.UI.createWindow({
backgroundColor:'white'
});
////////////////////////////////////////////////
function createCenterNavWindow(){
var win = Ti.UI.createWindow({
backgroundColor:'#eee',
title:"Testing Window",
tintColor:"purple",
translucent:false,
barColor:"#F9A"
});
var rightBtn = Ti.UI.createButton({title:"Popover Test"});
rightBtn.addEventListener("click", function(){
Social.activityPopover({
text:"share like a king!",
view: rightBtn //source button
});
});
win.rightNavButton = rightBtn;
// EXAMPLE API USAGE
var scrollView = Ti.UI.createScrollView({
layout:"vertical",left:0,right:0,top:0,
contentHeight:'auto',contentWidth:"100%",
showVerticalScrollIndicator: true,showHorizontalScrollIndicator: false
});
var testBtn = Ti.UI.createButton({title:"Popover Test"});
testBtn.addEventListener("click", function(){
Social.activityPopover({
text:"share like a king!",
view: testBtn //source button
});
});
scrollView.add(testBtn);
win.add(scrollView);
//NAV
var navController = Ti.UI.iOS.createNavigationWindow({
window : win
});
return navController;
}
////////////////////////////////////////////////
// NappSlideMenu WINDOW
var NappSlideMenu = require('dk.napp.slidemenu');
var window = NappSlideMenu.createSlideMenuWindow({
centerWindow: navController,
rightWindow:winRight
});
window.open(); //init the app
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Noticed an issue when you try and use the social activityPopover with a button in the navbar and the navbar sits within the slide menu component. Works fine on the iPhone version but doesn't show the popover on the iPad version.
Is this a bug? I can work round it by placing the share button in the window not on the toolbar but I would love to make the iphone and ipad apps consistent.
Issue explained using the code example below: (taken from app.js in example)...
When you click on the navbar button it shows nothing... no error...
When you click on the button within the window it shows the popover...
Running 3.5.1GA - iPad - iOS 8.3
Version 1.8 of dk.napp.social
Version 1.4.3 of dk.napp.slidemenu
var Social = require('dk.napp.social');
Ti.API.info("module is => " + Social);
////////////////////////////////////////////////
// CENTER MAIN WINDOW
var navController = createCenterNavWindow();
////////////////////////////////////////////////
////////////////////////////////////////////////
// RIGHT WINDOW
var winRight = Ti.UI.createWindow({
backgroundColor:'white'
});
////////////////////////////////////////////////
function createCenterNavWindow(){
var win = Ti.UI.createWindow({
backgroundColor:'#eee',
title:"Testing Window",
tintColor:"purple",
translucent:false,
barColor:"#F9A"
});
var rightBtn = Ti.UI.createButton({title:"Popover Test"});
rightBtn.addEventListener("click", function(){
Social.activityPopover({
text:"share like a king!",
view: rightBtn //source button
});
});
win.rightNavButton = rightBtn;
}
////////////////////////////////////////////////
// NappSlideMenu WINDOW
var NappSlideMenu = require('dk.napp.slidemenu');
var window = NappSlideMenu.createSlideMenuWindow({
centerWindow: navController,
rightWindow:winRight
});
window.open(); //init the app
The text was updated successfully, but these errors were encountered: