- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2016 10:12 AM
Variables in the Service Catalog can leave large amounts of white space between other variables when using containers, or in other words the padding / margining of the height are larger than usual. This happens at times for many reasons :
This is related to PRB665752
1. The UI Policy is actually hiding the row rather than displaying none.
Here is an example:
Here is what it looks like in code:
You Can Work around this By:
1. Create a Catalog Client Script and have it run onLoad
2. Use the code below.
This code has been use to work around a few different customers however, you can modify it to fit your own need.
var hello= document.getElementsByTagName('td');
var parent=null;
for(var i=0; i < hello.length; i++){
parent= hello[i].parentElement;
if(parent.id.indexOf('container') != -1){
hello[i].style.paddingBottom='0px';
}
}
Example of different solution:
var myClass = document.getElementsByClassName('iotd');
var i; for(i=0; i < myName.length; i++){
if(myClass[i].parentElement.id.indexOf('element.container') != -1){
myClass[i].style.paddingBottom="5px";
}
}
After using this code remember to cache.do to ensure the code loads on your system correctly.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2016 10:38 AM
You are correct Steven it is meant to be in a container, but it can also just be a stand alone UI Policy that is not setting display none correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2016 10:30 AM
There is more space when a container is added.
Is that a Container??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2016 10:38 AM
You are correct Steven it is meant to be in a container, but it can also just be a stand alone UI Policy that is not setting display none correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2016 06:22 AM
Hi Garay,
Was this issue fixed in any path(patch 7 or 8)?
Thanks and regards,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2016 09:52 AM