modal-dialog

Twitter Bootstrap modal pushes html content to the left

别等时光非礼了梦想. 提交于 2019-11-27 10:26:34
问题 If I open a modal dialog, through Twitter Bootstrap, I've noticed that it pushes all the html content of the page (i.e., in the container ) to the left a little bit, and then puts it back to normal after closing itself. However, this only happens if the browser width is large enough to not be on the "mobile" (i.e., smallest) media query. This occurs with the latest versions of FF and Chrome (haven't tested other browsers). You can see the problem here: http://jsfiddle.net/jxX6A/2/ Note: You

Bootstrap Modal immediately disappearing

对着背影说爱祢 提交于 2019-11-27 10:18:25
I'm working on a website using bootstrap. Basically, I wanted to use a modal in the home page, summoned by the button in the Hero Unit. Button code: <button type="button" class="btn btn-warning btn-large" data-toggle="modal" data-target="#myModal">Open Modal</button> Modal code: <div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">In Costruzione</h3> </div> <div class="modal-body"> <p>Test

Using :before CSS pseudo element to add image to modal

ε祈祈猫儿з 提交于 2019-11-27 10:03:36
问题 I have a CSS class Modal which is absolutely positioned, z-indexed above it's parent, and nicely positioned with JQuery. I want to add a caret image (^) to the top of the modal box and was looking at using the :before CSS pseudo selector to do this cleanly. The image needs to be absolutely positioned and z-indexed above the modal, but I haven't found any way to add the appropriate class to the image in the content attribute: .Modal:before{ content:url('blackCarrot.png') /* with class

How to get IE9 standards support for dialogs opened by HTA?

ⅰ亾dé卋堺 提交于 2019-11-27 09:48:00
I'm translating some of my old HTAs from Quirks to IE9 standards. However, it seems that modal and modeless dialogs opened by HTA don't support IE9 standards mode. Test dialog: <!DOCTYPE html> <html> <head> <title>TestDialog</title> <meta http-equiv="x-ua-compatible" content="ie=9" /> </head> <body> <svg> <circle cx="100" cy="100" r="50" fill="#0f0" /> </svg> </body> </html> In the HTA main page: <button onclick="showModalDialog(...)">Modal</button> <button onclick="showModelessDialog(...)">Modeless</button> When opening TestDialog from HTA, it's empty. If the main page is a regular html

How to implement Yii2 Modal Dialog on Gridview view and update button?

℡╲_俬逩灬. 提交于 2019-11-27 09:29:05
I would like to implement Yii2 modal dialog box on my gridview when view or update button is clicked at each row. Can anyone kindly advise on how to implement it? With advice from arogachev: This is an update on my codes <?php //var_dump($dataProvider); $gridColumns = [ [ 'format' => 'html', 'attribute' => 'avatar', 'label'=>'Image', 'headerOptions' => ['width' => '80%',], ], [ 'class' => 'yii\grid\ActionColumn', 'template' => '{view} {delete}', 'headerOptions' => ['width' => '20%', 'class' => 'activity-view-link',], 'contentOptions' => ['class' => 'padding-left-5px'], 'buttons' => [ 'view' =>

Modal not opening in IE

て烟熏妆下的殇ゞ 提交于 2019-11-27 09:14:43
I'm trying to make modals pop up with info about certain places on a map. Here is the code: <area href="#modal_starthere" data-toggle="modal" title="Start Here" shape="poly" coords="431, 785, 500, 785, 501, 839, 432, 838" /> And then later: <div id="modal_starthere" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4>Start Tour Here</h4> </div> <div class="modal-body"> <div class="row-fluid"> <div class="span12" style="overflow

How can I make a single instance form (not application)?

柔情痞子 提交于 2019-11-27 09:04:59
In my C# application I have an option dialog that can be opened from a menu command. I want to ensure that the option dialog have only one instance (user cannot open more than one option window at a given time) without making it modal. Also if the user already have this window opened, and he clicks in the menu item to open it again, the app just makes the already visible form became the top most window. Can anyone point me directions on how accomplish these tasks? Thank you very much. You will need this form as property Form1 myForm = null; private void Form1_FormClosed(object sender,

Leaflet map not showing properly in bootstrap 3.0 modal

本秂侑毒 提交于 2019-11-27 08:55:27
i have a big problem. i want to open a leaflet map in a modal. but the map is not showing properly. the tiles are not loading. here is the script: http://bootply.com/98730 <a href="#myModal" role="button" class="btn btn-primary" data-toggle="modal">Open Map</a> <div id="myModal" class="modal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title">Map</h4> </div> <div class="modal-body"> <div class="modal-body" id="map-canvas"></div> </div> <div class="modal

Twitter Bootstrap Modal not popping up for user login

醉酒当歌 提交于 2019-11-27 08:49:36
问题 I'm having trouble incorporating a twitter bootstrap pop-over modal with devise login/signup for when a user lands on our home page. I've spent some time implementing different methods but still no success. As of right now, when I click on the "login" button that is associated with the modal, the site refreshes but there is no modal. apps/views/layout/_header.html.slim (my application.erb file calls in other partials) li = link_to "Login", "data-toggle" => "modal", "data-target" => "#login

The 'await' operator can only be used within an async lambda expression

自古美人都是妖i 提交于 2019-11-27 08:33:00
I've got a c# Windows Store app. I'm trying to launch a MessageDialog when one of the command buttons inside another MessageDialog is clicked. The point of this is to warn the user that their content is unsaved, and if they click cancel, it will prompt them to save using a separate save dialog. Here's my "showCloseDialog" function: private async Task showCloseDialog() { if (b_editedSinceSave) { var messageDialog = new MessageDialog("Unsaved work detected. Close anyway?", "Confirmation Message"); messageDialog.Commands.Add(new UICommand("Yes", (command) => { // close document editor.Document