The report scores are not aligned to center

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2017 09:23 PM
Hi All,
I am trying to show a Single Score Report on the Service Portal through a Widget. its working fine for all types of Report, but for Single Score type, the content is not aligned to center.
Any help in the below code would be appreciated.
PFB Widget Code:
HTML:
<div class="panel panel-pink">
<!--<div class="panel-heading">Report Name</div> -->
<div class="panel-body">
<iframe class="not-active" ng-src="{{data.report}}" scrolling="no" frameborder="0" height="{{data.height}}" width="100%"></iframe>
<div></div>
CSS:
.panel.panel-pink .panel-heading {
border-radius: 3px;
color: #FFF;
background-color: #D9853B;
}
.panel.panel-pink .panel-body {
background-color: #e7e7e7;
color: #4D4D4D;
}
.panel-pink > .panel-body{
min-height:100px;
}
.panel-pink > .panel-heading{
height:46px;
}
.panel-pink{
margin-top:-15px;
width:100%;
}
Server Script:
(function() {
/* populate the 'data' object */
/* e.g., data.table = $sp.getValue('table'); */
data.report = "show_report.do?report="+options.report;
if (options.height) {
data.height = options.height +"px";
} else {
data.height = "100px";
}
})();
Client Script:
function() {
/* widget controller */
var c = this;
}
Option Schema:
[{"displayValue":"Report","name":"report","label":"Report","type":"reference","value":"sys_report","ed":{"reference":"sys_report"}},{"name":"height","label":"Height","type":"string"}]
Thanks
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 12:53 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 01:10 AM
Thanks a lot for the help gauravbajaj2007 . it worked .
On Wed, Nov 8, 2017 at 2:23 PM, gauravbajaj2007 <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 02:37 AM
Please mark it Correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 09:48 AM
How does the end user center it?