Skip to content
GitLab
Erkunden
Anmelden
Registrieren
Primärnavigation
Suchen oder aufrufen …
Projekt
QUI
Verwalten
Aktivität
Mitglieder
Labels
Planen
Tickets
6
Ticketübersichten
Meilensteine
Wiki
Code
Merge Requests
0
Repository
Branch
Commits
Tags
Repository-Diagramm
Revisionen vergleichen
Code-Schnipsel
Build
Pipelines
Aufgaben
Pipeline-Zeitpläne
Artefakte
Bereitstellung
Releases
Betreiben
Umgebungen
Überwachen
Vorfälle
Service-Desk
Analysieren
Wertschöpfungskettenanalyse
Mitwirkenden-Analyse
CI/CD-Analyse
Repository-Analysen
Hilfe
Hilfe
Support
GitLab-Dokumentation
GitLab-Pläne vergleichen
Community-Forum
Zu GitLab beitragen
Feedback geben
Tastenkürzel
?
Code-Schnipsel
Gruppen
Projekte
Show more breadcrumbs
QUIQQER
QUI
Commits
576edb2a
Commit
576edb2a
erstellt
vor 7 Jahren
von
Henning Leutz
Dateien durchsuchen
Optionen
Downloads
Einfaches Diff
Merge branch 'dev'
Übergeordnete
c12ee94f
5a7a32b7
No related branches found
Branches enthält Commit
No related tags found
Tags enthält Commit
Keine zugehörigen Merge Requests gefunden
Änderungen
2
Leerzeichenänderungen ausblenden
Inline
Nebeneinander
2 geänderte Dateien
qui/classes/QUI.js
+28
-6
28 Ergänzungen, 6 Löschungen
qui/classes/QUI.js
qui/controls/windows/Popup.js
+3
-4
3 Ergänzungen, 4 Löschungen
qui/controls/windows/Popup.js
werden angezeigt
mit
31 Ergänzungen
und
10 Löschungen
qui/classes/QUI.js
+
28
−
6
Zeige Datei @
576edb2a
...
...
@@ -86,14 +86,29 @@ define('qui/classes/QUI', [
this
.
Windows
=
new
Windows
();
this
.
Storage
=
new
Storage
();
var
Ghost
=
new
Element
(
'
div
'
,
{
styles
:
{
background
:
'
transparent
'
,
display
:
'
none
'
,
height
:
'
100%
'
,
left
:
0
,
position
:
'
fixed
'
,
top
:
0
,
width
:
'
100%
'
,
zIndex
:
1
}
});
// global resize event
if
(
typeof
window
!==
'
undefined
'
)
{
var
win
=
document
.
id
(
window
);
var
body
=
document
.
id
(
document
.
body
);
win
.
requestAnimationFrame
(
function
()
{
this
.
$winSize
=
win
.
getSize
();
Ghost
.
setStyle
(
'
display
'
,
null
);
this
.
$winSize
=
Ghost
.
getSize
();
Ghost
.
setStyle
(
'
display
'
,
'
none
'
);
this
.
$winScroll
=
win
.
getScroll
();
if
(
typeof
body
!==
'
undefined
'
&&
body
)
{
...
...
@@ -112,7 +127,10 @@ define('qui/classes/QUI', [
body
=
document
.
id
(
document
.
body
);
}
this
.
$winSize
=
win
.
getSize
();
Ghost
.
setStyle
(
'
display
'
,
null
);
this
.
$winSize
=
Ghost
.
getSize
();
Ghost
.
setStyle
(
'
display
'
,
'
none
'
);
this
.
$winScroll
=
win
.
getScroll
();
this
.
$bodySize
=
body
.
getSize
();
this
.
$bodyScroll
=
body
.
getScrollSize
();
...
...
@@ -126,7 +144,11 @@ define('qui/classes/QUI', [
}.
bind
(
this
),
100
));
win
.
addEvent
(
'
domready
'
,
function
()
{
this
.
$winSize
=
win
.
getSize
();
Ghost
.
inject
(
document
.
body
);
Ghost
.
setStyle
(
'
display
'
,
null
);
this
.
$winSize
=
Ghost
.
getSize
();
Ghost
.
setStyle
(
'
display
'
,
'
none
'
);
this
.
$winScroll
=
win
.
getScroll
();
if
(
typeof
body
===
'
undefined
'
||
!
body
)
{
...
...
@@ -310,8 +332,8 @@ define('qui/classes/QUI', [
var
nodes
=
[];
if
(
typeOf
(
Parent
)
===
'
elements
'
)
{
Parent
.
getElements
(
'
[data-qui]
'
).
each
(
function
(
elements
)
{
Array
.
combine
(
nodes
,
elements
.
filter
(
function
(
Node
)
{
Parent
.
getElements
(
'
[data-qui]
'
).
each
(
function
(
elements
)
{
Array
.
combine
(
nodes
,
elements
.
filter
(
function
(
Node
)
{
return
Node
;
}));
});
...
...
This diff is collapsed.
Zum Erweitern klicken.
qui/controls/windows/Popup.js
+
3
−
4
Zeige Datei @
576edb2a
...
...
@@ -326,7 +326,6 @@ define('qui/controls/windows/Popup', needle, function (QUI,
var
ios
=
SystemUtils
.
iOSversion
();
if
(
ios
)
{
document
.
body
.
setStyles
({
overflow
:
'
hidden
'
,
position
:
'
fixed
'
,
...
...
@@ -409,7 +408,7 @@ define('qui/controls/windows/Popup', needle, function (QUI,
this
.
fireEvent
(
'
resizeBegin
'
,
[
this
]);
var
self
=
this
,
doc_size
=
document
.
body
.
get
Size
(),
doc_size
=
QUI
.
getWindow
Size
(),
height
=
this
.
getOpeningHeight
(),
width
=
this
.
getOpeningWidth
();
...
...
@@ -704,7 +703,7 @@ define('qui/controls/windows/Popup', needle, function (QUI,
* @returns {number}
*/
getOpeningWidth
:
function
()
{
var
width
=
Math
.
max
(
document
.
documentElement
.
clientWidth
,
window
.
innerWidth
||
0
)
;
var
width
=
QUI
.
getWindowSize
().
x
;
if
(
width
>
this
.
getAttribute
(
'
maxWidth
'
))
{
width
=
this
.
getAttribute
(
'
maxWidth
'
);
...
...
@@ -719,7 +718,7 @@ define('qui/controls/windows/Popup', needle, function (QUI,
* @returns {number}
*/
getOpeningHeight
:
function
()
{
var
height
=
Math
.
max
(
document
.
documentElement
.
clientHeight
,
window
.
innerHeight
||
0
)
;
var
height
=
QUI
.
getWindowSize
().
y
;
if
(
height
>
this
.
getAttribute
(
'
maxHeight
'
))
{
height
=
this
.
getAttribute
(
'
maxHeight
'
);
...
...
This diff is collapsed.
Zum Erweitern klicken.
Vorschau
0%
Wiederholen
oder
Neue Datei anhängen
.
Abbrechen
You are about to add
0
people
to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Kommentar speichern
Abbrechen
Bitte
registrieren
oder
Anmelden
zum Kommentieren