Outlook 2016加载项对话框的高度和宽度交换

时间:2018-08-14 22:06:31

标签: outlook outlook-addin office-js outlook-web-addins outlook-2016

我正在为Microsoft Outlook开发外接程序。自从Outlook 2016 8月1日更新(版本1807,内部版本10325.20082)以来,我们已经看到使用 <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> <link rel="stylesheet" href=""> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style> .modal-header, h4, .close { background-color: black; color:white !important; text-align: center; font-size: 20px; } .modal-footer { background-color: #f9f9f9; } </style> </head> <body> <center> <div id="video_container"> <video id="" width="700px" height="400px" controls="" id="video" tabindex="0"> <source src="a.mp4" type="video/mp4"> </video> <br> <div>Current Time : <span id="currentTime">0</span></div> <div>Total time : <span id="totalTime">0</span></div> </div> </center> <script> $(function(){ $('#currentTime').html($('#video_container').find('video').get(0).load()); $('#currentTime').html($('#video_container').find('video').get(0).play()); }) setInterval(function(){ $('#currentTime').html($('#video_container').find('video').get(0).currentTime); $('#totalTime').html($('#video_container').find('video').get(0).duration); },500) </script> <!-- Modal Box Start --> <div class="container"> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header" style="padding:35px 1px;"> <h4><span class="glyphicon glyphicon-lock"></span> To continue you need to Login</h4> </div> <div class="modal-footer" style="height: 80px; position:relative;"> <p>Not a member? <a href="#">Sign Up</a></p> <p>Forgot <a href="#">Password?</a></p> </div> </div> </div> </div> </div> <!-- Modal End --> </body> </html> 打开的对话框显示不正确(请参见下面的代码示例)。它们的显示比以前更宽或更短。尝试解决此问题后,我们意识到,当我们增加height参数时,对话框看起来确实很宽,而增加width参数导致对话框看起来真的很高。我们看到来自其他加载项的对话框也越来越短了。我们怀疑高度和宽度参数读取不正确。

displayDialogAsync()

1 个答案:

答案 0 :(得分:1)

感谢您报告此问题。这是某些Outlook 2016版本(包括您拥有的版本)中的一个已知问题。它已在内部版本16.0.10713.10000和更高版本中修复。