From 5954fd9070097de725c7a91713825fc51722ccd2 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Mon, 26 Sep 2016 19:41:20 +0530 Subject: [PATCH] EMM-1595 : Fixing Icon of Users get enlarged when sorting by user name in List Mode --- .../app/pages/cdmf.page.users/public/js/listing.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js index acceff1fc83..2d5b88e35b7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js @@ -43,7 +43,16 @@ var modalPopup = ".modal"; var modalPopupContainer = modalPopup + " .modal-content"; var modalPopupContent = modalPopup + " .modal-content"; var body = "body"; -$(".icon .text").res_text(0.2); + +/** + * + * Fires the res_text when ever a data table redraw occurs making + * the font icons change the size to respective screen resolution. + * + */ +$(document).on( 'draw.dt', function () { + $(".icon .text").res_text(0.2); +} ); /* * set popup maximum height function.