Skip to content
Snippets Groups Projects
Commit 25aad732 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

FIX: resize rating table

parent 084f5a39
Branches
Tags
No related merge requests found
......@@ -2,6 +2,27 @@ var $ = jQuery;
$(function() {
function AdjustTable() {
var jWrap = $('div.main_layer');
var jTable = $("div.main_content");
var tableWidth = jTable.get(0).scrollWidth;
// check scroll bar
if (tableWidth <= jTable.width()+10) {
return;
}
//correct
tableWidth *= 1.1;
var maxWidth = $(window).width() * 0.95;
var newWidth = (tableWidth > maxWidth)?maxWidth:tableWidth;
jWrap.css("max-width", newWidth);
}
$("div.main_content").ready(AdjustTable);
$(window).resize(AdjustTable);
function controlRowVisualization(jRow) {
var jAutoPassCheckBox = jRow.children(".autoPass").children(".autoPassCheck");
var semesterRate = parseInt(jRow.children(".semesterRateResultCell").text());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment