question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with table-responsive, Help me pls

See original GitHub issue

jquery-confirm version: v3.3.0

I’m submitting a … [x ] support request

Current behavior: The “table-responsive” class not work.

Related code:

var trPagos = "";
for (var i = 0; i < response.Pagos.length; i++) {
	trPagos += '<tr>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td nowrap>xxxxxxxxx</td>'+
			'<td>xxxxxxxxx</td>'+
		'</tr>';
}
self.setContentAppend('<div class="col-xs-12 padding-none">'+
		'<div class="col-xs-12 padding-none">'+
			'<div class="table-responsive">'+
				'<table class="table table-bordered table-condensed table-hover">'+
					'<thead>'+
						'<tr>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
							'<th>xxxxxxxxxxx</th>'+
						'</tr>'+
					'</thead>'+
					'<tbody>'+trPagos+'</tbody>'+
				'</table>'+
			'</div>'+
		'</div>'+
	'</div>');

Other information: width large large1

width small small1

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
craftpipcommented, Jan 20, 2018

I will look into this for sure.

0reactions
AnasSaficommented, Oct 30, 2021

Temporary solution:

const width = $(window).width();
$.confirm({
     boxWidth: (width < 700) ? (width - 50) + 'px' : 'auto',
     useBootstrap: (width < 700) ? false : true,
     columnClass: 'col-md-12',
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

tablepress responsive problem - WordPress.org
Hello, i've a problem with my website responsive because of table-press im really disappointed. Please help me out ! The page I need...
Read more >
Bootstrap table responsive problem when contain more than ...
Responsive table is only able to show 10 columns with sidebar open, if more than that, the table exceeds 100% width on my...
Read more >
Responsive Binding Problem Assistance Please - DataTables
I have been able to get a table working beautifully with the Responsive plugin. I have 10 columns. On a cell phone, columns...
Read more >
Responsive tables, revisited - Lea Verou
However, keep in mind that the techniques based on generated content also have this problem — and for all rows. Also, that the...
Read more >
Topic: making image in table responsive - WordPress.com
I tried repairing the IE9 problems by adding style=”width:xx%;” to each <td> but that only helps on the first row (I used colspans...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found