Datepicker displayed on top of the modal - ionic2

In my ionic 2 application, we are have a page which shows date picker on click of a button. When date picker is displayed, if app goes in background, we are displaying a lock screen modal. The problem is when we show the modal, the date picker is displaying on top of the modal. Does anyone have an idea about how to handle this?

You may probably need to adjust z-index property of the datepicker within the stylesheet (decrease the value, so it is less than the one for modal), so it will not be rendered on top of the modal.

Related

Switch focus from panel or overlay to text of document from within plugin

In a sublime_plugin.TextCommand if the plugin is run using a key binding from within a panel or overlay is it possible for the plugin to switch focus from the overlay or panel to the text of the document?
Ideally if called from the overlay or find/replace panel then the overlay or panel would be closed when the focus changes to the text of the document, but if called from the console then the console would be left open.
I tried the following but it didn't work - I guess the view already has the focus so it changes nothing and an overlay or panel being displayed does not actually mean the view has lost focus.
if self.view.settings().get('is_widget'):
window = self.view.window()
window.focus_view(window.active_view())
Thanks.

Menu with top and bottom scrollbars

I have a web-site that uses CFMENU, which is essentially yui.
The top of each page contains a fixed div, and the menu sits within this fixed div. When scrolling is necessary on the main portion of the page, it scrolls under this fixed div.
When a menu drops down when a page is scrolled all the way to the top, the menus drop down fully.
When the page is scrolled to the bottom, the menus display top and bottom scroll bars and the menus only display half their contents.
When I inspect the menu in firebug, there are two empty divs with "topscrollbar" and "bottomscrollbar" classes that appear.
Is there any way to prevent this?
FYI - When the menu is removed from the fixed div portion of the screen, there are no problems at all with the menus.

Add Four buttons in a panel in MFC Ribbon

I want to add 4 navigation button in a panel. For Go to First page , previous page, next page, last page [<< < >> >]. I want these buttons in a row but MFC automatically put them in a column. Is there a work around to achieve this.
Thanks
Did you associate these buttons with large (32x32) images? Otherwise, the MFC Ribbon is always trying to put them into the column. In addition, you've to call SetAlwaysLargeImage method for each button to prevent button size decreasing when the frame is being resized.
Regards,
Rob

Owner drawing a checkbox List View

I have created a List view control with View = Icon / List, with LVS_EX_CHECKBOXES enabled.
And the checkboxes overlap with the items text, so I am wondering how could I create a owner drawn list view with checkboxes ?
I have seen that one has to process LVN_ITEMCHANGED notitication to test if an item has been checked.
How does this apply when the checkbox itself gets owner drawn, how do I approach this problem.
How Do I manage the events, the checkbox checking and unchecking while drawing my own, do I have to implement the checking routines myself or do I get something from the window? A message or something? While drawing my own checkbox how do I differentiate between a click on the item and a click on the checkbox, do I have to check the coordinates of the cursor when the click occured? how do I do this.
THis is with view= icon, it shows ok with view=list

Float a control over a CView

I've got an app that uses several CView-derived classes (actually CScrollView) to display document data. For one particular view, I want to add a fly-out edit box to add notes. That is, you'd see a tab at the bottom of the window labeled "Page Notes", and clicking on that would bring up the edit box. Clicking the tab while the edit box is visible would reduce it back to just the tab.
I thought I could use a one-tab CTabCtrl holding an edit box and just position it so that only the tab is visible initially. Capture the tab click notification and move the entire control, with edit box, into view. Clicking the tab again would move it back down so only the tab is visible.
Hosting the CTabCtrl on the CView is fine, and I can get it positioned correctly. The problem is that if the view is scrolled, the tab control is scrolled along with it, whereas I need it to "float" over the view and not be affected by any scrolling. I can move it back into place after the scroll, but the flickering is unsightly.
Is there a straightforward way to accomplish the "floating" effect? I mainly want the tab embedded in the view for maintenance, since it's the only view class out of the several in use that needs the "Page Notes" feature.
Should I just buckle down and put the tab in the view's parent window instead? I know it won't be affected by scrolling there, but I like the idea of keeping the tab as part of the view if possible.
It sound like the tab is functioning like a button. You click the tab and a fly out edit box appears. You could use a modeless dialog.
Select the "Page Note" and the modeless dialog comes up to edit your notes allowing you to scroll your view under the dialog.

Categories