firefox addons panel hide - firefox

My addon opens a popup panel (popup.html).
When the user changes the current tab to different tab, the popup panel is hidden
When the tab is selected second time I need it to still available contentURL (popup.html) but I did find the way to do it.

You can create your panel like this:
<panel
id="yourPanel"
type="arrow"
noautohide="true"
level="parent">
</panel>
Explanation:
level = "parent" means the panel is shown just above the window the panel is in, but behind other windows above it.
noautohide = "true" means the panel will only be closed when the hidePopup method is called.
With these two combined, you get the behavior you're looking for.
For reference see mdn panel page

Related

NativeScript BottomNavigation -> how to open default page on bottom navigation item tap?

I have page called "Fund". I have bottom navigation with 5 tabs - "Home" / "Portfolio" and 3 others. In default behaviour all tabs has it's own navigation stack and if opened "Fund" in Home and then opened Portfolio when i return to Home "Fund" still be opened.
My goal is open default page for opened bottom navigation tab on every touch.
Here is the sample code {N} Playground
Solved in this issue
It's quite possible Frame.topmost() gets confused during tab
transition. However, you can access a certain tab frame and call
goBack() for it. Check this playground and let me know if it solves
your problem:
https://play.nativescript.org/?template=play-tsc&id=4Ij5yz&v=7

Gantry Framework is hiding the wrong menu on mobile in Joomla 3.7. How do i get it to hide the correct one?

The site I'm working on has its main menu in the "Navigation" section in gantry. I have another 2 menus on the page (in the "header" area), though they don't actually link anywhere. They exist as "text separators" that show a module in the dropdown box that shows when the "link" is hovered over (so one is a spyglass that shows the search module in the dropdown).
When i shrink the screen size, gantry eventually causes the menu to disappear an then enables the mobile menu, accessed by the burger button.
The problem is, instead of hiding the actual main menu in the navigation section, it's hiding the first "fake" menu search button in the header section.
I can't see anywhere to set which menu is the one that should be hidden. How do i do this?
Been stuck on this since yesterday. Finally caved and post about it on this site then find the answer 20 minutes later, naturally.
I needed to check the box marked "Mobile Target" on the menu i want to be the one to be hidden. I thought this did something else so never tried using it but it seems so obvious now.

Joomla 3 Show Title issue. Hide page-header

I turned Show Title option for articles to Hide in global settings. So it works for each my page good instead of home page. So the title is still appear, even if I switched it to hide in article that correspond to Home page content.
I suppose maybe something wrong with menu.
So I have next menu:
Home
Photos
Contacts
Each menu content single article, but only Home shows title...
I am using joomla 3
on the screenshot below Home header that I don't need.
on the screenshot below Videos header that set as Show tile in menu item
on the screenshot below Videos header that set as Hide tile in menu item
I am making the same for Home but it does not work the Home tile is still visible.
I tapped on menu items then on home items which is single article:
then I modify visibility options:
save and close - and then update the index page in browser, but nothing happen the header Home is still on the page (
The solution is next:
Click on the “Menus” menu and select “Main Menu”.
Click on the menu item that represents your home page (usually “Home” or something similar)
On the right side, click on “Page Display Options”
Set “Show Page Heading” to “No”
Click on “Save”
http://www.celticwolf.com/blog/2012/09/06/how-to-hide-the-page-heading-in-joomla-2-5/
You have an option to show or hide the title of Articles and also Menus. Usualy is "Home" also the dafault "Frontpage" of the site, having the option to show the title.
Go to Menus -> Default "Home" Menu and under options you should have Show Title and hide it.
This should work, i tested it right now on my page to be sure.
Regards
in joomla 3.x it will be possible by combination of backend settings and source code change.
Login to your joomla control panel.
Go to Global\Articles and turn the "Show Title" and "Article info Title" to Hide.
Go to Global\Menus and turn the "Show Page Heading" to Hide.
Login to your host and go to your public html directory then go to "\templates**[your template]**\html\com_content\article" directory.
open default.php in editor and find
php if $this->params->get('show_page_heading', 1) :
and change the 1 to 0 then save it.
I suggest you to backup default.php file before any changes.
You can disable the Page Heading in the Menu Item options as showed below in my screenshot:
if this don't work, try to go to MENUS - MANAGE - (press the button OPTIONS to the right of the page)
In browser page title press one space , the set the second voice to NO:
Then save and press the REBUILD button.
This happens when you have a multi language site. The "Show Page Heading" option inside the languages home menu doesn´t works at all in this case. It is overrided by the Main Menu home options (that one without any languages assigned to it, that is mandatory in Joomla).
So if you change the "Show Page Heading" option inside the Main Menu home options, it will work.
Bizarre. But, it´s the way that Joomla 3 works.

Ordering issue in modal window

I have a problem with a component that loads in to a modal window. I am using the Alpha User Points system and it has a component that gives you a full list of yous site's users. It also gives you the ability to order by username, by points etc. If I use it outside of modal window it works fine. If I use it in to modal window, ordering don't work!!! When I put my mouse over table's headers, outside of modal window gives this...javascript:tableOrdering('aup.referreid','asc','');In to modal window I see this...javascript:tableOrdering('aup.referreid','asc','');?ml=1 Using Firebug, I remove this ?ml=1 and it works into modal also!!! So the question is, why in to modal window gives this ?ml=1, what is this? And how will I remove it?
Well here is the answer... I use the Modalizer extension of nonumber.nl. I was loading my component through modalizer's modal box, this is why I had this issue. So, if anyone use Modalizer to popup components and have the same problem with me, just go to modalizer's Plugin Manager, find the option Convert Links inside Window and disable it!!! But, after this, if you want to add link in to modal window and you don't want to show-up the whole front page but only the component or what ever this is, you have to add at the end of the link this &ml=1.

Programmatically docking a User Control at Run Time

I need to dock a WinForms user control at run time but I'm encountering an issue.
In my main form, I have a menu strip at the top of it. I want to programmatically add a UserControl docked to the left of the main window and below the menu strip.
When I add my User control at runtime and then set its Dock property to DockStyle.Left, it does not appear below the menustrip but instead it takes up the entire left side of the form. This causes the menustrip to be pushed to the right and does not look attractive.
I need to do this at runtime because the project requires the ability to customize which user control can appear on the left side of the main form for each user.
Any help in finding an answer would be greatly appreciated.
A quick and dirty way to do it would be to add a Panel beneath the MenuStrip (docked Left or Full), then add the UserControl to the Panel.
Edit: What's happening is that the order in which controls are added to a container determine how they will appear on the form. Since you're doing this programmatically at some point after the form has been created, the UserControl is the last Control added to the Form, so it's going to affect those items already on the form. If you have a Panel on the Form that makes things appear as you want them too, adding the UserControl to the Panel will only affect those items inside the Panel and not on the rest of the Form.
Add an Panel which docks below the toolstrip, and add the User Control to that container.
Edit: Already answered.

Resources