This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine the root renderer's position setting with its normal updating…
… process. Position/z-index/visibility properties are now built into a single CSS string and applied directly in the initial markup, or all at once as cssText in subsequent updates, which should make both faster. Also fixes issues with visibility not getting updated at proper times. Respond to style.* changes on watched ancestors.
- Loading branch information
Showing
7 changed files
with
130 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have problems with this... in my case i have an element with rounded corners in the middle of a text, and when changing that text the position of the element also changes but the shapes remain on the "old" position. Any idea of what may be causing this?
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BMCouto You're using a master branch build? Any particular IE versions this issue occurs in?
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just made a build from your latest release here on github. It's happening on IE8.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK thanks, it's always great to see people trying master. I assume you've set -pie-load-path so it loads the js files from your server (this is not documented yet but is required for the time being.)
Would you be able to put together a testcase?
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't... where should I put this -pie-load-path and why?
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of this: aa82152 (-pie-base-url was renamed to -pie-load-path afterward)
Look at the html files in the test directory for an example of using -pie-load-path.
FYI this is only required right now until we have a real CDN default location.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry but I'm not understanding. I never used -pie-load-path too and I can't find it on the html files. Can you give me an example and tell me why is it needed? I have a class for it which is used in several elements on the site.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As described in that commit comment, -pie-load-path tells PIE.htc where to go to load its secondary .js files. Like I said, the docs in the tests directory are good examples of its usage, e.g. https://github.com/lojjic/PIE/blob/master/tests/basic.html
Since you weren't aware of these 2.x changes on master, may I ask why you are trying to use the master code? Is there a particular bug or feature you are trying to get around, or just for curiosity? I'm happy to have people testing master but if you want stable code for a live site the 1.0.0 release would be better for you.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! :)
About using the master, I just prefer it because it has more bug fixes and performance improves. I come regularly to your github so I normally know what's new (although I missed the -pie-load-path)
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jason, I though the PIE.htc file was enough. In that case which files exactly do I need to have too?
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need PIE.htc plus the two js files PIE_IE678.js and PIE_IE9.js -- it's easiest just to copy the entire build directory to your server.
220dc17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working fine, although I fixed with reposition the button again, because the initial problem continues. If possible you should check this out.
To reproduce it just put an element with rounded corners in a middle of a text and change that text after so the button moves his position after PIE rendering you will see the problem immediately.
Thanks a lot for all the help with -pie-load-path and keep on the amazing work done here! :)