[jbosstools-issues] [JBoss JIRA] (JBIDE-15878) Visual Page Editor conflicts with mobile palette because of sqllite incompatibility
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Nov 6 03:37:02 EST 2013
[ https://issues.jboss.org/browse/JBIDE-15878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851252#comment-12851252 ]
Alexey Kazakov commented on JBIDE-15878:
----------------------------------------
We need to use Mozila browser for Palette preview for linux OS and insert the following code to the HTML we are rendering in the preview tab to support HTML5:
{code}
<head>
<script>
(function() {
var originalGetComputedStyle = window.getComputedStyle;
window.getComputedStyle = function() {
if (arguments.length == 1) {
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=567350 (getComputedStyle requires both arguments to be supplied)
return originalGetComputedStyle.call(this, arguments[0], null);
} else {
return originalGetComputedStyle.apply(this, arguments);
}
};
}());
</script>
{
> Visual Page Editor conflicts with mobile palette because of sqllite incompatibility
> -----------------------------------------------------------------------------------
>
> Key: JBIDE-15878
> URL: https://issues.jboss.org/browse/JBIDE-15878
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 4.1.1.Beta1
> Environment: Linux (since osx and windows allows codesharing)
> Reporter: Max Rydahl Andersen
> Assignee: Viacheslav Kabanovich
> Priority: Critical
> Fix For: 4.1.1.CR1
>
>
> We've found that like JBIDE-9144 we still have a problem mixing webkit and xulrunner.
> Test to see if it fails:
> 1 Run Linux (version from JBIDE-9144)
> 2 Create a html5 page
> {code}
> <!DOCTYPE html>
> <html>
> <head>
> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
> <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
> </head>
> <body>
> <h1>HTML 5</h1>
> </body>
> </html>
> {code}
> 3 Use a fresh workspace
> 4 Open Preferences , Ensure "Source" is set as default active editor tab for "Visual Page Editor"
> 5. Open html5 page (DO NOT OPEN VISUAL/PREVIEW TABS IN VPE!)
> 6 Open Palette, see JQueryMobile drag "Table" to the page - see preview working
> 7. Switch to Visual/Source (visual part should be enabled)
> 8. Drag another "table" to the page
> Take screenshot showing dialog with Table at the same time as VPE shows preview of html5
> 9. write down linux versoin, Java version (32/64 bit)
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list