This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from ezsystems/ezp-24298-studio_iframe_descri…
…ption EZP-24298: Display an iframe in the studio and studio+ description
- Loading branch information
Showing
16 changed files
with
238 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-view-studiopluspresentationview .ez-studiopluspresentation-content { | ||
width: 100%; | ||
height: 100%; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-view-studiopresentationview .ez-studiopresentation-content { | ||
width: 100%; | ||
height: 100%; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
YUI.add('ez-height-fit', function (Y) { | ||
"use strict"; | ||
/** | ||
* The height fit extension | ||
* | ||
* @module ez-height-fit | ||
*/ | ||
Y.namespace('eZ'); | ||
|
||
/** | ||
* Views extension providing the content of height fit . When, `fitted to height`, the view | ||
* container scales to match the viewport's height new dimension. | ||
* | ||
* @namespace eZ | ||
* @class HeightFit | ||
* @extensionfor Y.View | ||
*/ | ||
Y.eZ.HeightFit = Y.Base.create('heightFitExtension', Y.View, [], { | ||
initializer: function () { | ||
this.after('activeChange', function () { | ||
if (this.get('active')) { | ||
this._uiSetHeight(); | ||
} | ||
}); | ||
}, | ||
|
||
/** | ||
* Sets the height of the view | ||
* | ||
* @private | ||
* @method _uiSetHeight | ||
*/ | ||
_uiSetHeight: function () { | ||
var container = this.get('container'); | ||
|
||
container.setStyle( | ||
'height', container.get('winHeight') - container.getY() + 'px' | ||
); | ||
}, | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
<p>You don't have eZ Studio Plus Installed :(</p> | ||
|
||
<h1>Learn more about eZ Studio Plus</h1> | ||
|
||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin facilisis tristique felis, in euismod | ||
ipsum sollicitudin vitae. Morbi pellentesque ut purus non placerat. Vivamus sollicitudin condimentum | ||
nunc, eget euismod dolor. Etiam ultricies sit amet dui vel sagittis. Maecenas vitae fermentum urna. | ||
Sed aliquam lacinia ante, ac convallis justo pulvinar ac. Nunc pellentesque lobortis diam, nec | ||
placerat sapien pulvinar ac. Nullam euismod mattis dictum. Suspendisse consectetur, nisl vel | ||
porttitor bibendum, eros nisi placerat est, ut mattis magna lorem ac dolor. Aliquam viverra sit | ||
amet purus eu tincidunt. | ||
</p> | ||
|
||
<p> | ||
Quisque ut tincidunt elit. Pellentesque nulla felis, vestibulum non eros vitae, lacinia luctus odio. | ||
Etiam dapibus metus eget bibendum mattis. Donec lectus risus, hendrerit non condimentum et, | ||
venenatis nec neque. Etiam sed varius arcu. Nulla ullamcorper luctus augue, blandit tempor neque | ||
lobortis sit amet. Mauris ac eleifend augue. Etiam condimentum auctor ex, nec vehicula nunc aliquam | ||
et. Quisque sagittis sed mi maximus rutrum. Proin eu enim non neque viverra iaculis. In hac habitasse | ||
platea dictumst. Aenean euismod nunc urna, id iaculis nisl gravida vel. | ||
</p> | ||
<iframe class="ez-studiopluspresentation-content" src="about:blank"></iframe> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
<p>You don't have eZ Studio Installed :(</p> | ||
|
||
<h1>Learn more about eZ Studio</h1> | ||
|
||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin facilisis tristique felis, in euismod | ||
ipsum sollicitudin vitae. Morbi pellentesque ut purus non placerat. Vivamus sollicitudin condimentum | ||
nunc, eget euismod dolor. Etiam ultricies sit amet dui vel sagittis. Maecenas vitae fermentum urna. | ||
Sed aliquam lacinia ante, ac convallis justo pulvinar ac. Nunc pellentesque lobortis diam, nec | ||
placerat sapien pulvinar ac. Nullam euismod mattis dictum. Suspendisse consectetur, nisl vel | ||
porttitor bibendum, eros nisi placerat est, ut mattis magna lorem ac dolor. Aliquam viverra sit | ||
amet purus eu tincidunt. | ||
</p> | ||
|
||
<p> | ||
Quisque ut tincidunt elit. Pellentesque nulla felis, vestibulum non eros vitae, lacinia luctus odio. | ||
Etiam dapibus metus eget bibendum mattis. Donec lectus risus, hendrerit non condimentum et, | ||
venenatis nec neque. Etiam sed varius arcu. Nulla ullamcorper luctus augue, blandit tempor neque | ||
lobortis sit amet. Mauris ac eleifend augue. Etiam condimentum auctor ex, nec vehicula nunc aliquam | ||
et. Quisque sagittis sed mi maximus rutrum. Proin eu enim non neque viverra iaculis. In hac habitasse | ||
platea dictumst. Aenean euismod nunc urna, id iaculis nisl gravida vel. | ||
</p> | ||
<iframe class="ez-studiopresentation-content" src="about:blank"></iframe> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>Dummy Iframe</title> | ||
</head> | ||
<body> | ||
<p>I am the content of an iframe and I can be called from unit tests :)</p> | ||
|
||
</body> | ||
</html> |
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.